mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 18:04:54 +02:00
as noted in 88341867a2
,
Alex was last active in April 2022, there has been
no new activity since
38 lines
1 KiB
Text
38 lines
1 KiB
Text
# Contributor: Alex Yam <alex@alexyam.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=libtommath
|
|
pkgver=1.2.1
|
|
pkgrel=1
|
|
pkgdesc="Number theoretic multiple-precision integer library"
|
|
url="https://www.libtom.net/LibTomMath/"
|
|
arch="all"
|
|
license="Unlicense"
|
|
makedepends="libtool"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.xz::https://github.com/libtom/libtommath/releases/download/v$pkgver/ltm-$pkgver.tar.xz"
|
|
|
|
# secfixes:
|
|
# 1.2.1-r0:
|
|
# - CVE-2023-36328
|
|
|
|
build() {
|
|
make -f makefile.shared
|
|
}
|
|
|
|
check() {
|
|
# make test creates a stand-alone test binary that executes several test routines.
|
|
# clone $builddir to testdir for running tests
|
|
cp -Rp "$builddir" "$srcdir"/testdir
|
|
cd "$srcdir"/testdir
|
|
make test
|
|
./test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" LIBPATH=/usr/lib INCPATH=/usr/include -f makefile.shared install
|
|
}
|
|
|
|
sha512sums="
|
|
50c9459357aa7f5076af93de6701c617da0dbbf2230a2f4468062704a6cd6e9d3c2fbb27016f68a7e1d6b35d6ddb2088630b24ea6acc20ed8c19594913d36e95 libtommath-1.2.1.tar.xz
|
|
"
|