From 45fa33fb4598587faba7051b59731d20934266d1 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Mon, 15 Feb 2016 17:40:44 +0100 Subject: [PATCH] New package: libtommath-1.0 Closes #3537 --- common/shlibs | 1 + srcpkgs/libtommath-devel | 1 + srcpkgs/libtommath/template | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 120000 srcpkgs/libtommath-devel create mode 100644 srcpkgs/libtommath/template diff --git a/common/shlibs b/common/shlibs index 103194b1ce8..6f1b855eda2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -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 diff --git a/srcpkgs/libtommath-devel b/srcpkgs/libtommath-devel new file mode 120000 index 00000000000..b097965e962 --- /dev/null +++ b/srcpkgs/libtommath-devel @@ -0,0 +1 @@ +libtommath \ No newline at end of file diff --git a/srcpkgs/libtommath/template b/srcpkgs/libtommath/template new file mode 100644 index 00000000000..e4739a8a373 --- /dev/null +++ b/srcpkgs/libtommath/template @@ -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 " +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" + } +}