New package: libtommath-1.0

Closes #3537
This commit is contained in:
Michael Gehring 2016-02-15 17:40:44 +01:00
parent 4a1496fa1e
commit 45fa33fb45
3 changed files with 36 additions and 0 deletions

View File

@ -2351,3 +2351,4 @@ libnetfilter_cttimeout.so.1 libnetfilter_cttimeout-1.0.0_1
libnetfilter_cthelper.so.0 libnetfilter_cthelper-1.0.0_1
libnetfilter_queue.so.1 libnetfilter_queue-1.0.2_1
libfilezilla.so.0 libfilezilla-0.3.1_1
libtommath.so.1 libtommath-1.0_1

1
srcpkgs/libtommath-devel Symbolic link
View File

@ -0,0 +1 @@
libtommath

View File

@ -0,0 +1,34 @@
# Template file for 'libtommath'
pkgname=libtommath
version=1.0
revision=1
hostmakedepends="libtool"
short_desc="A portable number theoretic multiple-precision integer library"
maintainer="Michael Gehring <mg@ebfe.org>"
license="Public domain"
homepage="http://www.libtom.org/LibTomMath/"
distfiles="https://github.com/libtom/libtommath/releases/download/v${version}/ltm-${version}.tar.xz"
checksum=993a7df9ee091fca430cdde3263df57d88ef62af8103903214da49fc51bbb56c
do_build() {
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 -f makefile.shared
}
do_install() {
make -f makefile.shared DESTDIR=${DESTDIR} install
}
libtommath-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}