diff options
-rw-r--r-- | libmpc-static/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libmpc-static/PKGBUILD b/libmpc-static/PKGBUILD new file mode 100644 index 000000000..6675650b3 --- /dev/null +++ b/libmpc-static/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Allan McRae <allan@archlinux.org> + +pkgname=libmpc-static +pkgver=1.1.0 +pkgrel=1 +pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision" +arch=('x86_64') +url="http://www.multiprecision.org/" +license=('LGPL') +depends=('mpfr-static') +source=(https://ftp.gnu.org/gnu/mpc/mpc-${pkgver/_/-}.tar.gz{,.sig}) +md5sums=('4125404e41e482ec68282a2e687f6c73' + 'SKIP') +validpgpkeys=('AD17A21EF8AED8F1CC02DBD9F7D5C9BF765C61E3') # Andreas Enge + +build() { + cd "${srcdir}/mpc-${pkgver}" + LDFLAGS+=' -static ' + ./configure --prefix=/usr + make +} + +check() { + cd "${srcdir}/mpc-${pkgver}" + make check +} + +package() { + cd "${srcdir}/mpc-${pkgver}" + make DESTDIR="${pkgdir}" install + rm -rf --one-file-system "$pkgdir/usr/include/" "$pkgdir/usr/share" +} |