smlinux/base/gmp/gmp.SMBuild
2022-09-23 10:06:42 +05:30

36 lines
820 B
Text
Executable file

app=gmp
version=6.1.2
build=1sml
homepage="https://gmplib.org/"
download="https://gmplib.org/download/gmp/gmp-$version.tar.lz"
desc="GNU multiple precision arithmetic library"
requires="gcc-libs"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
printf "all:\n\ttrue\n\ninstall:\n\ttrue\n\n" > tests/Makefile.in
[ "$arch" = "aarch64" ] && builddist="--build=aarch64-musl-linux"
./configure \
--prefix="" \
--with-pic \
--enable-cxx \
$builddist
make
make install DESTDIR=$pkg
cp AUTHORS COPYING* NEWS README $pkgdocs/
mkfinalpkg
}
sha512sums="
20cac114b085e434e4b3c5be7a8a9caadc5ce2b0e427fb07877f33631d2ea39df6e4691bbe93e05687c169afc8e0e219c6b4d9481e38f7e98ac907da01e1b7b6 gmp-6.1.2.tar.lz
"