summaryrefslogtreecommitdiff
path: root/pcr/eigen3/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/eigen3/PKGBUILD')
-rw-r--r--pcr/eigen3/PKGBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/pcr/eigen3/PKGBUILD b/pcr/eigen3/PKGBUILD
new file mode 100644
index 000000000..240b55f8a
--- /dev/null
+++ b/pcr/eigen3/PKGBUILD
@@ -0,0 +1,28 @@
+# Contributor: Chirantan Ekbote <chirantan.ekbote at gmail.com>
+# Contributor: Kringel
+# This PKGBUILD is a modified version of eigen 2.x in extra/eigen
+# Maintainer: Parabola GNU / Linux-libre Aurélien Desbrières <aurelien@cwb.IO>
+
+pkgname=eigen3
+pkgver=3.2.0
+pkgrel=1
+pkgdesc="Eigen is a lightweight C++ template library for vector and matrix math, a.k.a. linear algebra."
+arch=('any')
+url='http://eigen.tuxfamily.org'
+license=('MPL2')
+makedepends=('cmake' 'pkgconfig')
+source=("${pkgname}-${pkgver}.tar.bz2::http://bitbucket.org/eigen/eigen/get/${pkgver}.tar.bz2")
+sha512sums=ab30077c845b09aa3f652e4695f1e256c7c7ff1c0f850e38cf9867ab9659ec6008fa646c2796796ca718b996764e7e3d2811a2c6a24abacbe50a2513fc670ca5
+
+build() {
+ mkdir -p "$srcdir"/build
+ cd "$srcdir"/build
+ cmake ../eigen-eigen-* \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+}
+
+package() {
+ cd "$srcdir"/build
+ make DESTDIR="$pkgdir" install
+}