43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'libtomcrypt'
|
|
pkgname=libtomcrypt
|
|
version=1.18.0
|
|
revision=1
|
|
patch_args="-Np1"
|
|
hostmakedepends="libtool"
|
|
short_desc="Fairly comprehensive, modular and portable cryptographic toolkit"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="Public domain"
|
|
homepage="http://www.libtom.net/?page=features&newsitems=5&whatfile=crypt"
|
|
distfiles="https://github.com/libtom/libtomcrypt/releases/download/v${version}/crypt-${version}.tar.xz"
|
|
checksum=da9df56a314afaab71963aa71bb6a075ea6bdee3d4db4af045f6bfe23e88b87a
|
|
|
|
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_check() {
|
|
make test
|
|
|
|
./test
|
|
}
|
|
do_install() {
|
|
make -f makefile.shared GROUP="$(whoami)" USER="$(whoami)" NODOCS=1 DESTDIR=${DESTDIR} PREFIX=/usr install
|
|
vman ${sourcepkg}.3
|
|
}
|
|
|
|
libtomcrypt-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|