summaryrefslogtreecommitdiff
path: root/user/libtommath/APKBUILD
blob: 41e3a1ea1d91e9dcffe9124c8859498322fcc130 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"