blob: 85b2f9c7939a0cbde231c8c57f0f88526eda51a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=unrealircd
pkgver=5.0.8
pkgrel=0
pkgdesc="internet relay chat daemon (ircd)"
url="https://www.unrealircd.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
argon2-dev
c-ares-dev
curl-dev
libnsl-dev
openssl-dev
pcre2-dev
tre-dev
"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="https://www.unrealircd.org/downloads/unrealircd-$pkgver.tar.gz"
prepare() {
default_prepare
update_config_guess
update_config_sub
# Patch ./configure to run without first running ./Config
sed -i 's/test "x$enable_dynamic_/test "$enable_dynamic_/' ./configure
}
build() {
./configure \
--prefix=/usr \
--enable-dynamic-linking \
--enable-ssl \
--with-bindir=/usr/bin \
--with-cachedir=/var/lib/unrealircd/cache \
--with-confdir=/etc/unrealircd \
--with-datadir=/var/lib/unrealircd/data \
--with-docdir=/usr/share/man/unrealircd \
--with-logdir=/var/log/unrealircd \
--with-modulesdir=/usr/lib/unrealircd/modules \
--with-nick-history=2000 \
--with-permissions=0600 \
--with-pidfile=/var/lib/unrealircd/run/unrealircd.pid \
--with-privatelibdir=/usr/lib/unrealircd/private_lib \
--with-scriptdir=/usr/lib/unrealircd/scripts \
--with-showlistmodes \
--with-tmpdir=/var/lib/unrealircd/tmp
make
}
package() {
mkdir -p $pkgdir/usr/lib/unrealircd/scripts
mkdir -p $pkgdir/var/lib/unrealircd/run
mkdir -p $pkgdir/usr/lib/unrealircd/private_lib
make DESTDIR="$pkgdir" install
#remove symlink to source
rm -v $pkgdir/usr/lib/unrealircd/scripts/source
}
sha512sums="45fc0758a870dbb9c3ff55fc7029d1ecff9dcf65680f31ff331f012efbf9c9bffa60a6fe27b9bab69302d26b8293a1089cfaf1c550a3f2802a549f25e4644770 unrealircd-5.0.8.tar.gz"
|