summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxantares2015-06-08 21:43:55 +0200
committerxantares2015-06-08 21:43:55 +0200
commitdd8ec6bf7658652c20c254716c470453d0fdab3f (patch)
treeffbaf2b91499115c1e3686ff43a297d8d96a5a5b
downloadaur-dd8ec6bf7658652c20c254716c470453d0fdab3f.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD27
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d39b042d21a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = cminpack
+ pkgdesc = A C/C++ rewrite of the MINPACK software
+ pkgver = 1.3.4
+ pkgrel = 1
+ url = http://devernay.free.fr/hacks/cminpack/cminpack.html
+ arch = i686
+ arch = x86_64
+ license = GPL
+ license = LGPL
+ makedepends = cmake
+ source = http://devernay.free.fr/hacks/cminpack/cminpack-1.3.4.tar.gz
+ md5sums = 5d95527644f3eb924fea9aff55e0ebfb
+
+pkgname = cminpack
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a0e29ab104b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Contributor: Figo.zhang <figo1802@gmail.com>
+
+pkgname=cminpack
+pkgver=1.3.4
+pkgrel=1
+pkgdesc="A C/C++ rewrite of the MINPACK software"
+arch=('i686' 'x86_64')
+url='http://devernay.free.fr/hacks/cminpack/cminpack.html'
+license=('GPL' 'LGPL')
+makedepends=('cmake')
+source=("http://devernay.free.fr/hacks/cminpack/cminpack-${pkgver}.tar.gz")
+md5sums=('5d95527644f3eb924fea9aff55e0ebfb')
+
+build() {
+ cd $srcdir/cminpack-${pkgver}
+ mkdir -p build && pushd build
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMINPACK_LIB_INSTALL_DIR=lib \
+ -DSHARED_LIBS=ON -DBUILD_EXAMPLES=OFF ..
+ make
+}
+
+package() {
+ cd $srcdir/cminpack-${pkgver}/build
+ make install DESTDIR="${pkgdir}"
+}