🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
pkgname: gmp
pkgver: '6.3.0'
pkgrel: '6'
pkgdesc: 'A free library for arbitrary precision arithmetic.'
url: 'https://gmplib.org/'
arch: x86_64
license:
- 'GPL-2.0-or-later'
- 'LGPL-3.0-or-later'
depends: []
makedepends:
- m4
- texinfo
source:
- 'https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz'
sha256sums:
- SKIP
build: |
cd gmp-${pkgver}
cp -v configfsf.guess config.guess
cp -v configfsf.sub config.sub
CFLAGS+=' -std=gnu17'
case `uname -m` in
i?86)
ABI=32 ./configure \
--prefix=/usr \
--enable-cxx \
--docdir=/usr/share/doc/${pkgname}-${pkgver};;
*)
./configure \
--prefix=/usr \
--build=x86_64-unknown-linux-gnu \
--enable-cxx \
--docdir=/usr/share/doc/${pkgname}-${pkgver};;
esac
make
make html
# make check 2>&1 | tee gmp-check-log
# awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log
make DESTDIR=${PKGDIR} install
make DESTDIR=${PKGDIR} install-html
package: |
true