From b4fc193faf68f0af61185df2f4328012bd89cfac Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 23 Mar 2019 00:15:09 +0100 Subject: mpfr-static new --- mpfr-static/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 mpfr-static/PKGBUILD diff --git a/mpfr-static/PKGBUILD b/mpfr-static/PKGBUILD new file mode 100644 index 000000000..af0c4683c --- /dev/null +++ b/mpfr-static/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Erich Eckner +# Contributor: Allan McRae +# Contributor: damir + +pkgname=mpfr-static +_pkgname=mpfr +pkgver=4.0.2 +pkgrel=1 +pkgdesc='Multiple-precision floating-point library' +arch=(x86_64) +url='https://www.mpfr.org/' +license=(LGPL) +depends=('gmp-static>=5.0') +source=(https://www.mpfr.org/mpfr-$pkgver/mpfr-${pkgver}.tar.xz{,.asc}) +validpgpkeys=('07F3DBBECC1A39605078094D980C197698C3739D') +sha256sums=('1d3be708604eae0e42d578ba93b390c2a145f17743a744d8f3f8c2ad5855a38a' + 'SKIP') + +build() { + cd $_pkgname-$pkgver + LDFLAGS+=' -static ' + ./configure --prefix=/usr --enable-thread-safe --enable-shared + make +} + +check() { + cd $_pkgname-$pkgver + make check + make check-exported-symbols +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + rm -rf --one-file-system "$pkgdir/usr/share/" "$pkgdir/usr/include/" "$pkgdir/usr/lib/pkgconfig" +} -- cgit v1.2.3-70-g09d2