void-packages/srcpkgs/znc/template
2019-06-13 12:41:50 +02:00

78 lines
1.9 KiB
Bash

# Template file for 'znc'
pkgname=znc
version=1.7.3
revision=2
build_style=gnu-configure
configure_args="
--enable-python
--enable-perl
--enable-tcl
--enable-cyrus
--with-tcl=$XBPS_CROSS_BASE/usr/lib"
hostmakedepends="pkg-config perl"
makedepends="libressl-devel python3-devel tcl-devel libsasl-devel
icu-devel zlib-devel perl"
short_desc="An advanced IRC Bouncer"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="Apache-2.0"
#changelog="https://github.com/znc/znc/raw/master/ChangeLog.md"
homepage="https://znc.in/"
distfiles="https://znc.in/releases/${pkgname}-${version}.tar.gz"
checksum=1e4cc31837a1e8e6cc310873659a167cec16a3fd4281cbc3bf364e42352c113d
system_accounts="znc"
znc_homedir="/var/lib/znc"
make_dirs="/var/lib/znc 0750 znc znc"
pre_configure() {
local perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
mkdir -p $perlprefix
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"*.p? $perlprefix
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Errno.pm" $perlprefix
export PERL5LIB=$perlprefix
export TCL_FLAGS="$CFLAGS $LDFLAGS -ltcl8.6"
}
post_install() {
vsv znc
}
znc-python3_package() {
depends="znc>=${version}_${revision}"
pycompile_version="$py3_ver"
pycompile_dirs="/usr/lib/znc/modpython"
short_desc+=" - python3 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
}
}