summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5445a200d0027918515d66ae3009c534e1d5ffb (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
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Maintainer: Bastian Rieck <bastian@rieck.ru>
#

pkgname=aleph-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=r1578.2822abb
pkgrel=1
pkgdesc='A library for exploring persistent homology'
arch=('x86_64')
url="http://submanifold.github.io/Aleph"
license=('MIT')
groups=()
depends=('boost')
makedepends=('git' 'cmake')
optdepends=('flann: Support for fast approximate nearest neighbour search'
            'rapidjson: Support for JSON input and output')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('aleph::git+https://github.com/Submanifold/Aleph.git')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

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

prepare() {
	cd "$srcdir/${pkgname%-git}"
}

build() {
	cd "$srcdir/${pkgname%-git}"
  mkdir -p build
  cd build
  cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
  make -j8
}

check() {
	cd "$srcdir/${pkgname%-git}"
  cd build
	make -k test
}

package() {
	cd "$srcdir/${pkgname%-git}"
  cd build
	make DESTDIR="$pkgdir/" install
}