44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
# Template file for 'inspircd'
|
|
pkgname=inspircd
|
|
version=3.13.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=0a4534114f5db1602c53ca4cfbb5ad623b9f990737d8c8f85890d8de47165729
|
|
|
|
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 \
|
|
--binary-dir /usr/bin \
|
|
--disable-auto-extras \
|
|
--disable-ownership \
|
|
--distribution-label voidlinux-${revision} \
|
|
--system
|
|
vsed -i 's/-ldl/& -lm/' GNUmakefile
|
|
}
|
|
|
|
post_install() {
|
|
vsv inspircd
|
|
}
|