aboutsummaryrefslogtreecommitdiffstats
path: root/community/mdds/APKBUILD
blob: b3420a9c4f37a66872b856b7b8fc36910dcfeedf (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
43
44
45
46
47
48
49
50
51
52
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=mdds
pkgver=1.2.2
pkgrel=0
pkgdesc="Multi-dimentional data index algorithm"
url="https://code.google.com/p/multidimalgorithm/"
arch="noarch"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://kohei.us/files/mdds/src/mdds-$pkgver.tar.bz2
	"

builddir="$srcdir"/${pkgname}-$pkgver
prepare() {
	local i
	cd "$builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

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

md5sums="8855cf852a6088cfdc792c6f7ceb0243  mdds-1.2.2.tar.bz2"
sha256sums="141e730b39110434b02cd844c5ad3442103f7c35f7e9a4d6a9f8af813594cc9d  mdds-1.2.2.tar.bz2"
sha512sums="552cb1b65c03cd18eb679c95821e47c1151e1b3015043de4b3a7bc14d27734772fa4d80fd90ab48998d0bc75385a3d29c4dd7ce826cf84b012685573c623bf01  mdds-1.2.2.tar.bz2"