summaryrefslogtreecommitdiff
path: root/pcr/eigen3/PKGBUILD
blob: a1e186325180ca79009549ac3b080e6a1a61de53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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.1.2
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")

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
}