smlinux/base/gmp/gmp.SMBuild
2022-01-28 23:06:05 +05:30

36 lines
817 B
Text
Executable file

APP=gmp
VERSION=6.1.2
BUILD=1sml
DESC="GNU multiple precision arithmetic library"
REQUIRES="gcc-libs"
HOMEPAGE='https://gmplib.org/'
DOWNLOAD='https://gmplib.org/download/gmp/gmp-6.1.2.tar.lz'
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
"