aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unrealircd/APKBUILD
blob: b46c4ec7420695cf1b689107f34875532ef85dd6 (plain) (blame)
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
63
64
# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=unrealircd
pkgver=5.2.2
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
	libsodium-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
	0001.configure-without-running-config.patch"

prepare() {
	default_prepare
	update_config_guess
	update_config_sub
}

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() {
	install -dm755 \
		$pkgdir/var/lib/unrealircd/run \
		$pkgdir/usr/lib/unrealircd/scripts \
		$pkgdir/usr/lib/unrealircd/private_lib
	make DESTDIR="$pkgdir" install
	# remove symlink to source
	rm -v $pkgdir/usr/lib/unrealircd/scripts/source
}

sha512sums="9d36eb1567431bc4a5420bc830bfc8dc89daa08ed1746efd6102e5ef161f67baf52e75e373454df7df6a443c4f575fb300d3c289d4dd99239a6de7d2b2a555a0  unrealircd-5.2.2.tar.gz
532cb2419d2b79685a391113cf1f498417ff46ad545b41e3b9e2153966ba92e21e2ef8dc9010ab491bbc10c7758d38a61a1213caf7eabe1c066ccd12c0a6f13e  0001.configure-without-running-config.patch"