aboutsummaryrefslogtreecommitdiffstats
path: root/community/mdds/APKBUILD
blob: 2ba8b5f2f380d6c9f7489365663cb35b244ad487 (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.1
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="4cf64cd1f6543501b10054a0801a03dd  mdds-1.2.1.tar.bz2"
sha256sums="1e2f49dfc7b9d444bad07064837099741f4c2d061807173392ad2357116dfc7b  mdds-1.2.1.tar.bz2"
sha512sums="c865e1f6f55ce2d7a590dee55d374f252606f2c10dcb966b21249f20e248d87c22cd72b652548ce88ac9e5562d249c531a7f2a44c37ee17cc84ec2708c89591b  mdds-1.2.1.tar.bz2"