aboutsummaryrefslogtreecommitdiffstats
path: root/testing/inspircd/APKBUILD
blob: 875a18274fa5bcfca375396384361dd3db3bb5c1 (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
# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=inspircd
pkgver=3.8.1
pkgrel=0
pkgdesc="internet relay chat daemon (ircd)"
url="https://www.inspircd.org/"
pkgusers="inspircd"
pkggroups="inspircd"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	perl
	argon2-dev
	libmaxminddb-dev
	mariadb-dev
	postgresql-dev
	pcre-dev
	re2-dev
	tre-dev
	sqlite-dev
	openssl-dev
	"
subpackages="$pkgname-doc"
options="!check" # no test suite
		 # ./tools/test-build does configure and make test only (and is broken)
source="$pkgname-$pkgver.tar.gz::https://github.com/inspircd/inspircd/archive/v$pkgver.tar.gz"

build() {
	# Upstream's modulemanager is incomplete
	# modules: ldap, stdlib, mbedtls are unavailable
	#
	# from 'configure' line 364-367:
	#   TODO: finish modulemanager rewrite and replace this code with:
	#   system './modulemanager', 'enable', '--auto';
	#   my %modules = (
	#	  # Missing: m_ldap, m_regex_stdlib, m_ssl_mbedtls
	#
	# --manual-dir is set to /usr/share/man/man1 for inspircd.1.gz
	./configure \
		--prefix=/usr \
		--binary-dir=/usr/bin \
		--config-dir=/etc/inspircd \
		--data-dir=/var/lib/inspircd/data \
		--example-dir=/usr/share/inspircd/examples \
		--log-dir=/var/log/inspircd \
		--manual-dir=/usr/share/man/man1 \
		--module-dir=/usr/lib/inspircd/modules \
		--script-dir=/usr/lib/inspircd/scripts \
		--socketengine=epoll \
		--gid=inspircd \
		--uid=inspircd \
		--development
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="be16dd18882bdb424ebeb131e382db073adaf37914e7c8333bd1c266242f2c48e6c721f0ecae72159bca229790413dabee67fd4a4a3c83588c48c8bb15e604fa  inspircd-3.8.1.tar.gz"