pkgname=gmp pkgver=6.3.0 pkgdesc='A free library for arbitrary precision arithmetic' homepage='https://gmplib.org/' license=(GPL-2.0-or-later LGPL-3.0-or-later) sources=("${pkgname}-$pkgver.tar.xz") urls=("https://ftp.gnu.org/gnu/gmp/${sources[0]}") md5sums=("956dc04e864001a9c22429f761f2c283") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { sed -i '/long long t1;/,+1s/()/(...)/' configure ./configure --prefix=/usr \ --enable-cxx \ --disable-static \ --docdir=/usr/share/doc/${pkgname}-${pkgver} make make html } src_check() { make check } src_install() { make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install-html }