PKGBUILDs/community/unrealircd/PKGBUILD

75 lines
2.4 KiB
Bash
Raw Normal View History

2016-01-09 01:03:07 +00:00
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Zerial <fernando@zerial.org>
# ALAMR: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix AArch64 FTBFS
pkgname=unrealircd
2017-01-17 01:08:37 +00:00
pkgver=4.0.10
2017-01-24 13:32:18 +00:00
pkgrel=3
2016-01-09 01:03:07 +00:00
pkgdesc="Open Source IRC Server"
arch=('i686' 'x86_64')
url="http://unrealircd.com"
license=('GPL2')
2016-11-15 19:06:17 +00:00
depends=('openssl' 'curl' 'c-ares' 'tre' 'pcre2')
2016-01-09 01:03:07 +00:00
conflicts=('ircd')
provides=('ircd')
backup=('etc/unrealircd/unrealircd.conf')
install=unrealircd.install
source=(https://www.unrealircd.org/unrealircd4/unrealircd-$pkgver.tar.gz
unrealircd.service
unrealircd.tmpfiles.d
install.pl
0001-run-autoreconf-on-TRE-library.patch)
2017-01-17 01:08:37 +00:00
sha256sums=('69ec154750212fd021cfe89dff65dfc0a73848d5962d4e641b0d48e90ac926d7'
2016-12-04 15:35:12 +00:00
'0a6d3c269ba5379f967b2ec035ad4c6226d42ce22ffaaf8c3e5b37ba8ee02ddd'
'2b2efb4b87b5b270e87fc0187ac1c559d41a41e6c81615182dc2bdd18bfcaccd'
'43f07093ada8eb5c954f9e2e189610575906c690c0953fec041d4f2d31210d85'
'425d6c1819375f8164998d49b4558396831efe36458c2d052927724494ae3961')
2016-01-09 01:03:07 +00:00
prepare() {
2016-11-14 14:49:02 +00:00
cd "$srcdir"/unrealircd-$pkgver
2016-01-09 01:03:07 +00:00
sed -i \
-e 's|$(INSTALL) -m 0700|$(INSTALL) -m 0755|g' \
-e 's|$(INSTALL) -m 0600|$(INSTALL) -m 0644|g' \
Makefile.in
patch -p1 -i ../0001-run-autoreconf-on-TRE-library.patch
}
build() {
2016-11-14 14:49:02 +00:00
cd "$srcdir"/unrealircd-$pkgver
2016-01-20 14:34:24 +00:00
./configure \
--with-pidfile=/run/unrealircd/ircd.pid \
--with-showlistmodes \
--enable-ssl=/usr \
--with-bindir=/usr/bin \
--with-datadir=/var/lib/unrealircd \
--with-confdir=/etc/unrealircd \
--with-modulesdir=/usr/lib/unrealircd \
--with-logdir=/var/log/unrealircd \
--with-cachedir=/var/cache/unrealircd \
--with-docdir=/usr/share/doc/unrealircd \
--with-tmpdir=/tmp \
--with-scriptdir=/usr \
--with-nick-history=2000 \
--with-sendq=3000000 \
--with-permissions=0644 \
--with-fd-setsize=1024 \
--enable-dynamic-linking
2016-01-09 01:03:07 +00:00
make
}
package() {
2016-11-14 14:49:02 +00:00
cd "$srcdir"/unrealircd-$pkgver
2016-01-09 01:03:07 +00:00
export pkgdir
2016-11-14 14:49:02 +00:00
make INSTALL="$srcdir"/install.pl install
mv "$pkgdir"/usr/unrealircd "$pkgdir"/etc/unrealircd/unrealircd
cp "$pkgdir"/etc/unrealircd/examples/example.conf "$pkgdir"/etc/unrealircd/unrealircd.conf
rm -rf "$pkgdir"/tmp
2016-01-09 01:03:07 +00:00
2016-11-14 14:49:02 +00:00
install -Dm0644 "$srcdir"/unrealircd.service "$pkgdir"/usr/lib/systemd/system/unrealircd.service
install -Dm0644 "$srcdir"/unrealircd.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/unrealircd.conf
2016-01-09 01:03:07 +00:00
}