summaryrefslogtreecommitdiff
path: root/staging/libmpc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'staging/libmpc/PKGBUILD')
-rw-r--r--staging/libmpc/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/staging/libmpc/PKGBUILD b/staging/libmpc/PKGBUILD
new file mode 100644
index 000000000..6a77bce43
--- /dev/null
+++ b/staging/libmpc/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 165110 2012-08-11 08:18:39Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+
+pkgname=libmpc
+pkgver=1.0
+pkgrel=1
+pkgdesc="Library for the arithmetic of complex numbers with arbitrarily high precision"
+arch=('i686' 'x86_64')
+url="http://www.multiprecision.org/"
+license=('LGPL')
+depends=('mpfr>=3.0.0')
+options=('!libtool')
+install=libmpc.install
+source=(http://www.multiprecision.org/mpc/download/mpc-${pkgver/_/-}.tar.gz)
+md5sums=('13370ceb2e266c5eeb2f7e78c24b7858')
+
+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
+ mv ${pkgdir}/usr/share/info/{mpc,libmpc}.info
+}