diff options
author | Erich Eckner <git@eckner.net> | 2019-03-23 00:10:16 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-03-23 00:10:16 +0100 |
commit | fdd4c0adbd6fa590e9ae6f5586107471d98a7d84 (patch) | |
tree | 74265dffe4c8ccd869e3c188b086aaa498cf93da | |
parent | 9c69b15a4a8d69ecb706793c36738582bcd03156 (diff) | |
download | archlinuxewe.git.save-fdd4c0adbd6fa590e9ae6f5586107471d98a7d84.tar.xz |
gmp-static new
-rw-r--r-- | gmp-static/PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gmp-static/PKGBUILD b/gmp-static/PKGBUILD new file mode 100644 index 00000000..8bf1b0ac --- /dev/null +++ b/gmp-static/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributer: Allan McRae <allan@archlinux.org> +# Contributer: Jan de Groot <jgc@archlinux.org> + +pkgname=gmp-static +_pkgname=gmp +pkgver=6.1.2 +pkgrel=2 +pkgdesc="A free library for arbitrary precision arithmetic" +arch=('x86_64') +url="http://gmplib.org/" +depends=('gcc-libs' 'sh' 'gmp') +license=('LGPL3' 'GPL') +source=(https://gmplib.org/download/gmp/gmp-${pkgver}.tar.xz{,.sig}) +md5sums=('f58fa8001d60c4c77595fbbb62b63c1d' + 'SKIP') +validpgpkeys=('343C2FF0FBEE5EC2EDBEF399F3599FF828C67298') # Niels Möller + +build() { + cd "${_pkgname}-${pkgver}" + + LDFLAGS+=' -static ' + + ./configure --build=${CHOST} \ + --prefix=/usr \ + --enable-cxx \ + --enable-fat + make +} + +check() { + cd "${_pkgname}-${pkgver}" + make check +} + +package() { + cd "${_pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf --one-file-system "${pkgdir}/usr/include" "${pkgdir}/usr/share" +} |