summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60b874760c2d0f1652d5bf4a0b450f050c185beb (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
28
29
30
31
32
33
# Maintainer: Andres F. Urquijo <alfagalileox@gmail.com>
pkgname=xtensor-git
_pkgname=xtensor
pkgver=0.10.4.r6.74fbf4a
pkgrel=1
pkgdesc="xtensor is a C++ library meant for numerical analysis with multi-dimensional array expressions."
arch=("any")
url="http://quantstack.net/xtensor"
license=('unknown')
depends=('gcc')
makedepends=('git' 'cmake')
optdepends=(
    "python: Optional, for python bindings"
    "pybind11: Optional, for python bindings"
    )
source=('git+https://github.com/QuantStack/xtensor.git')
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/${_pkgname}"
    printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
    cd "$srcdir/${_pkgname}"
    cmake -DCMAKE_INSTALL_PREFIX=/usr
    make
}

package() {
    cd "$srcdir/${_pkgname}"
    make DESTDIR="${pkgdir}" install
}