# Template file for 'silc-client'
pkgname=silc-client
version=1.1.8
revision=2
build_style=gnu-configure
configure_args="--enable-debug --enable-ipv6 --disable-optimizations
 ac_cv_func_pthread_rwlock_init=set ac_cv_func_epoll_wait=set"
makedepends="silc-toolkit-devel ncurses-devel pcre-devel glib-devel"
hostmakedepends="pkg-config"
conf_files="/etc/silc.conf"
short_desc="Secure Internet Live Conferencing client"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="GPL"
homepage="http://www.silcnet.org/"
distfiles="http://www.silcnet.org/download/client/sources/$pkgname-$version.tar.gz"
checksum=aac435e4fbe37ef1aabafcbc4ab224e29b76d23439ca75f4c4945d8164ed71d2

LDFLAGS="-lncursesw"

# Package build options
build_options="perl"

if [ "$build_option_perl" ]; then
	configure_args+=" --with-perl"
	hostmakedepends+=" perl"
else
	configure_args+=" --without-perl"
	post_install() {
		rm -rf ${DESTDIR}/usr/share/silc/scripts
	}
fi
