# Template file for 'libmcrypt'
pkgname=libmcrypt
version=2.5.8
revision=1
build_style=gnu-configure
configure_args="ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes"
short_desc="A data encryption library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://mcrypt.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/mcrypt/$pkgname-$version.tar.bz2"
checksum=bf2f1671f44af88e66477db0982d5ecb5116a5c767b0a0d68acb34499d41b793
long_desc="
 libmcrypt is a data encryption library. The library is thread safe
 and provides encryption and decryption functions. This version of the
 library supports many encryption algorithms and encryption modes. Some
 algorithms which are supported:
 SERPENT, RIJNDAEL, 3DES, GOST, SAFER+, CAST-256, RC2, XTEA, 3WAY,
 TWOFISH, BLOWFISH, ARCFOUR, WAKE and more"

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

libmcrypt_package() {
	pkg_install() {
		vmove usr
	}
}