-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
43 lines (39 loc) · 1.26 KB
/
template
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
# Template file for 'inspircd'
pkgname=inspircd
version=3.17.0
revision=1
build_style=gnu-makefile
hostmakedepends="perl pkg-config"
makedepends="gnutls-devel libmaxminddb-devel openssl-devel sqlite-devel"
short_desc="Modular Internet Relay Chat server"
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
license="GPL-2.0-only"
homepage="http://www.inspircd.org/"
distfiles="https://github.com/inspircd/inspircd/archive/v${version}.tar.gz"
checksum=181de90130e11a26ec107fcb6b74005cbce3051b89b500347e416054e29c3166
system_accounts="inspircd"
inspircd_homedir="/var/lib/inspircd"
make_dirs="
/run/inspircd 0750 ${pkgname} ${pkgname}
/var/log/inspircd 0750 ${pkgname} ${pkgname}
/var/lib/inspircd 0750 ${pkgname} ${pkgname}"
pre_configure() {
if [ "$CROSS_BUILD" ]; then
# configure script runs compiled executables to check for compiler features
vsed -i '/return 0 unless.*test_file(/d' make/configure.pm
fi
}
do_configure() {
./configure \
--enable-extras "geo_maxmind regex_posix regex_stdlib ssl_gnutls ssl_openssl sslrehashsignal sqlite3"
./configure \
--disable-auto-extras \
--disable-ownership \
--distribution-label voidlinux-${revision} \
--system
vsed -i 's/-ldl/& -lm/' GNUmakefile
}
post_install() {
vsv inspircd
vdoc "${FILESDIR}/README.voidlinux"
}