70 lines
1.6 KiB
Bash
70 lines
1.6 KiB
Bash
# Template file for 'znc'
|
|
pkgname=znc
|
|
version=1.6.0
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="
|
|
--enable-python
|
|
--enable-perl
|
|
--enable-tcl
|
|
--enable-cyrus
|
|
--sysconfdir=/etc
|
|
--localstatedir=/var"
|
|
system_accounts="znc"
|
|
znc_homedir="/var/lib/znc"
|
|
make_dirs="/var/lib/znc 0750 znc znc"
|
|
hostmakedepends="pkg-config perl"
|
|
makedepends="libressl-devel python3.4-devel tcl-devel libsasl-devel icu-devel zlib-devel perl"
|
|
short_desc="An advanced IRC Bouncer"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="Apache-2.0"
|
|
homepage="http://znc.in/"
|
|
distfiles="http://znc.in/releases/$pkgname-$version.tar.gz"
|
|
checksum=df622aeae34d26193c738dff6499e56ad669ec654484e19623738d84cc80aba7
|
|
|
|
do_configure() {
|
|
export TCL_FLAGS="-I${XBPS_CROSS_BASE}/usr/include -L${XBPS_CROSS_BASE}/usr/lib -ltcl8.6"
|
|
${configure_script} ${configure_args}
|
|
}
|
|
|
|
post_install() {
|
|
vsv znc
|
|
}
|
|
|
|
znc-python3.4_package() {
|
|
depends="znc>=${version}_${revision}"
|
|
short_desc+=" - python3.4 plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/znc/modpython
|
|
vmove usr/lib/znc/modpython.so
|
|
}
|
|
}
|
|
|
|
znc-perl_package() {
|
|
depends="znc>=${version}_${revision}"
|
|
short_desc+=" - perl plugin"
|
|
pkg_install() {
|
|
vmove usr/lib/znc/modperl
|
|
vmove usr/lib/znc/modperl.so
|
|
vmove usr/lib/znc/perleval.pm
|
|
}
|
|
}
|
|
|
|
znc-tcl_package() {
|
|
depends="znc>=${version}_${revision}"
|
|
short_desc+=" - tcl plugin"
|
|
pkg_install() {
|
|
vmove usr/share/znc/modtcl
|
|
vmove usr/lib/znc/modtcl.so
|
|
}
|
|
}
|
|
|
|
znc-devel_package() {
|
|
depends="znc>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|