summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-12 20:39:09 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-13 13:56:56 -0300
commit81fe897cff1daf121aae6c6c436384b1168e3702 (patch)
tree32a34f7e5002d73297ded5e103e9fcf131b024bd
parent1afd5cdc6c0c053ce846807920a2533489edbe82 (diff)
downloadabslibre-81fe897cff1daf121aae6c6c436384b1168e3702.tar.gz
abslibre-81fe897cff1daf121aae6c6c436384b1168e3702.tar.bz2
abslibre-81fe897cff1daf121aae6c6c436384b1168e3702.zip
add libmpc-static to [libre]
-rw-r--r--libre/libmpc-static/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/libre/libmpc-static/PKGBUILD b/libre/libmpc-static/PKGBUILD
new file mode 100644
index 000000000..7586034df
--- /dev/null
+++ b/libre/libmpc-static/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of libmpc
+
+_pkgname=libmpc
+pkgname=libmpc-static
+pkgver=1.0.3
+pkgrel=1
+pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision (static libraries only)"
+arch=('i686' 'x86_64' 'armv7h')
+url="http://www.multiprecision.org/"
+license=('LGPL')
+depends=('mpfr-static' 'libmpc')
+options=('staticlibs')
+source=(http://www.multiprecision.org/mpc/download/mpc-${pkgver/_/-}.tar.gz{,.sig})
+md5sums=('d6a1d5f8ddea3abd2cc3e98f58352d26'
+ 'SKIP')
+validpgpkeys=('AD17A21EF8AED8F1CC02DBD9F7D5C9BF765C61E3') # Andreas Enge
+
+build() {
+ cd "${srcdir}/mpc-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "${srcdir}/mpc-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/mpc-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # remove unused files
+ rm -vr ${pkgdir}/usr/{include,share}
+ rm -v ${pkgdir}/usr/lib/libmpc.so*
+}