summaryrefslogtreecommitdiff
path: root/user/libtommath
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-15 17:19:05 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-15 17:19:05 +0000
commit1930bc3928fc39cd8d9937b234b798cad20fd28b (patch)
tree8454fd3dde9bdf0dbb0764ddbe3faf3b5e2d061c /user/libtommath
parent391a4fd0e39dfca48f8becb08fb41005af5719c5 (diff)
downloadpackages-1930bc3928fc39cd8d9937b234b798cad20fd28b.tar.gz
packages-1930bc3928fc39cd8d9937b234b798cad20fd28b.tar.bz2
packages-1930bc3928fc39cd8d9937b234b798cad20fd28b.tar.xz
packages-1930bc3928fc39cd8d9937b234b798cad20fd28b.zip
user/libtommath: new package
Diffstat (limited to 'user/libtommath')
-rw-r--r--user/libtommath/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/libtommath/APKBUILD b/user/libtommath/APKBUILD
new file mode 100644
index 000000000..41e3a1ea1
--- /dev/null
+++ b/user/libtommath/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libtommath
+pkgver=1.1.0_rc1
+pkgrel=0
+pkgdesc="Theoretic multiple-precision integer library"
+url="https://www.libtom.net/LibTomMath/"
+arch="all"
+license="Unlicense"
+depends=""
+makedepends=""
+subpackages="$pkgname-dev"
+source="https://github.com/libtom/libtommath/releases/download/v${pkgver/_/-}/ltm-${pkgver/_/-}.tar.xz"
+builddir="$srcdir/$pkgname-${pkgver/_/-}"
+
+build() {
+ cd "$builddir"
+ make PREFIX=/usr -f makefile.shared
+}
+
+check() {
+ cd "$builddir"
+ make PREFIX=/usr -f makefile.shared test_standalone
+}
+
+package() {
+ cd "$builddir"
+ make PREFIX=/usr DESTDIR="$pkgdir" -f makefile.shared install
+}
+
+sha512sums="4cee5d59cd2eaf14591ee280dcdcdd5915f38584b7259b5752e7316cd1a9966f1c969ee3b64d136ae7044c5834cfc8c781db300ede503ec2e657083de3692fd2 ltm-1.1.0-rc1.tar.xz"