2012-11-09 08:23:46 +00:00
|
|
|
# Template file for 'libtomcrypt'
|
|
|
|
pkgname=libtomcrypt
|
|
|
|
version=1.17
|
2013-07-18 01:41:00 +00:00
|
|
|
revision=4
|
2012-11-09 08:23:46 +00:00
|
|
|
patch_args="-Np1"
|
2013-04-13 08:15:49 +00:00
|
|
|
hostmakedepends="libtool"
|
2012-11-09 08:23:46 +00:00
|
|
|
short_desc="Fairly comprehensive, modular and portable cryptographic toolkit"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="Public domain"
|
|
|
|
homepage="http://www.libtom.org/?page=features&newsitems=5&whatfile=crypt"
|
|
|
|
distfiles="http://www.libtom.org/files/crypt-${version}.tar.bz2"
|
|
|
|
checksum=e33b47d77a495091c8703175a25c8228aff043140b2554c08a3c3cd71f79d116
|
|
|
|
long_desc="
|
|
|
|
LibTomCrypt is a fairly comprehensive, modular and portable cryptographic
|
|
|
|
toolkit that provides developers with a vast array of well known published
|
|
|
|
block ciphers, one-way hash functions, chaining modes, pseudo-random number
|
|
|
|
generators, public key cryptography and a plethora of other routines."
|
2013-04-13 08:15:49 +00:00
|
|
|
|
2013-05-27 15:24:26 +00:00
|
|
|
do_build() {
|
|
|
|
sed -e "s,@@CC@@,$CC,g;s,\$(CC),$CC,g" -i makefile.shared
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
cp /usr/bin/libtool .
|
|
|
|
sed -e "s,CCLD=.*,CCLD=$CC,g;s,CC=.*,CC=$CC,g" -i libtool
|
|
|
|
sed -e 's,libtool,./libtool,g' -i makefile.shared
|
|
|
|
fi
|
|
|
|
make RANLIB=$RANLIB -f makefile.shared ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make -f makefile.shared NODOCS=1 DESTDIR=${DESTDIR} install
|
|
|
|
vinstall ${sourcepkg}.3 644 usr/share/man/man3
|
|
|
|
}
|
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
libtomcrypt-devel_package() {
|
|
|
|
depends="${sourcepkg}-${version}_${revision}"
|
2013-05-27 15:24:26 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
2013-05-27 15:24:26 +00:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/share/man/man3
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libtomcrypt_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|