# Template file for 'silc-toolkit'
pkgname=silc-toolkit
version=1.1.11
revision=1
build_style=gnu-configure
configure_args="--with-perl=yes --with-simdir=/usr/lib/silc/modules
 --enable-debug --enable-ipv6 --disable-optimizations
 ac_cv_func_pthread_rwlock_init=set ac_cv_func_epoll_wait=set"
makedepends="gmp-devel libidn-devel"
hostmakedepends="nasm perl"
short_desc="Secure Internet Live Conferencing protocol toolkit"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
license="GPL-2,BSD"
homepage="http://www.silcnet.org/"
distfiles="${SOURCEFORGE_SITE}/silc/silc/client/sources/$pkgname-$version.tar.bz2"
checksum=3cce1b551663603629ba8a9d3578ed928ee0eccf1bf4ee62d2377bf5c5b476a9

post_install() {
	#Remove large (useless) documentation.
	rm -rf usr/share/doc/silc-toolkit/toolkit
	vlicense COPYING
	vlicense BSD
}

silc-toolkit-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}-${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove usr/share/doc
	}
}