2015-05-08 22:29:32 +02:00
|
|
|
# Template file for 'znc'
|
|
|
|
pkgname=znc
|
2015-11-16 10:53:28 +01:00
|
|
|
version=1.6.2
|
2015-11-29 09:30:49 +01:00
|
|
|
revision=2
|
2015-05-08 22:29:32 +02:00
|
|
|
build_style=gnu-configure
|
2015-10-17 11:38:49 +02:00
|
|
|
configure_args="--enable-python --enable-perl --enable-tcl --enable-cyrus"
|
2015-05-08 22:29:32 +02:00
|
|
|
hostmakedepends="pkg-config perl"
|
2015-11-29 09:30:49 +01:00
|
|
|
makedepends="libressl-devel python3.4-devel tcl-devel libsasl-devel icu-devel zlib-devel perl"
|
2015-05-08 22:29:32 +02:00
|
|
|
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"
|
2015-11-16 10:53:28 +01:00
|
|
|
checksum=eef17727c0c6433fed1affba0ea76ec7fd60198d2f3c234d8529bd5fb26f0593
|
2015-05-08 22:29:32 +02:00
|
|
|
|
2015-10-17 11:38:49 +02:00
|
|
|
system_accounts="znc"
|
|
|
|
znc_homedir="/var/lib/znc"
|
|
|
|
make_dirs="/var/lib/znc 0750 znc znc"
|
|
|
|
|
2015-05-08 22:29:32 +02:00
|
|
|
do_configure() {
|
2015-10-17 11:38:49 +02:00
|
|
|
export TCL_FLAGS="$CFLAGS $LDFLAGS -ltcl8.6"
|
2015-05-08 22:29:32 +02:00
|
|
|
${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
|
|
|
|
}
|
|
|
|
}
|