summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4e412b8ccc0e628c4d51818d3addd89e80cb417 (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
34
35
36
37
38
39
40
41
42
# Maintainer: Orell Garten <orell.garten at rub.de>
_pkgname=blazert
pkgname=blazert-git
provides=('blazert')
pkgver=20.2.1.r8.1ace3c1
pkgrel=2
pkgdesc='An open-source, high-performance C++ ray tracing kernel library (develop).'
url='https://github.com/cstatz/blazert'
arch=('any')
license=('BSD')
makedepends=('cmake' 'git' 'make' 'gcc' 'blas' 'lapack' 'blaze' 'tar')
sha256sums=('SKIP')
source=("git+${url}#branch=develop")
conflicts=('blazert')

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

pkver() {
    cd "${_pkgname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd ${_pkgname} 
}

build() {
    cd $_pkgname
    mkdir -p build
    cd build
    cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
    cmake --build .
}

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