summaryrefslogtreecommitdiff
path: root/user/mdds/APKBUILD
blob: 07ea20488a8df4721b5b21d1317a275b63cade79 (plain) (blame)
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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=mdds
pkgver=1.4.0
pkgrel=0
pkgdesc="Multi-dimensional data index algorithms"
url="https://gitlab.com/mdds/mdds"
arch="noarch"
license="MIT"
depends=""
makedepends=""
checkdepends="boost-dev"
subpackages="$pkgname-doc"
source="http://kohei.us/files/$pkgname/src/$pkgname-$pkgver.tar.bz2"
replaces="$pkgname-dev"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -d 755 "$pkgdir"/usr/lib
	mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/
}

sha512sums="a51aca1deabd7f3eca51945800adca796cc776f987cb4b8419160d1f8f594c950b32a9426d89a2ebc7a145bcc1421e99cc3a996b0988c4524a58fc9c9dfc1f85  mdds-1.4.0.tar.bz2"