summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD27
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a5cbae1558d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = cppad
+ pkgdesc = A C++ Algorithmic Differentiation Package
+ pkgver = 20180000.0
+ pkgrel = 1
+ url = https://github.com/coin-or/CppAD
+ arch = any
+ license = GPL2
+ makedepends = cmake
+ source = https://github.com/coin-or/CppAD/archive/20180000.0.tar.gz
+ sha1sums = 962308a5ea77254f7af8f6b50ab6807dfe6d1122
+
+pkgname = cppad
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d2de3a6a0a3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Guilhem Saurel <saurel@laas.fr>
+
+pkgorg=coin-or
+_pkgname=CppAD
+pkgname=cppad
+pkgver=20180000.0
+pkgrel=1
+pkgdesc="A C++ Algorithmic Differentiation Package"
+arch=('any')
+url="https://github.com/$pkgorg/$_pkgname"
+license=('GPL2')
+depends=()
+optdepends=()
+makedepends=('cmake')
+source=("$url/archive/$pkgver.tar.gz")
+sha1sums=('962308a5ea77254f7af8f6b50ab6807dfe6d1122')
+
+build() {
+ cd "$_pkgname-$pkgver"
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
+ make
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+}