aboutsummaryrefslogtreecommitdiffstats
path: root/main/mdds/APKBUILD
blob: 7d7ddd781d31590ba142a76b48ad2b8061402369 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=mdds
pkgver=0.11.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/$pkgname/src/${pkgname}_$pkgver.tar.bz2
	fix-includes.patch"

_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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="cb4207cb913c7a5a8bfa5b91234618ee  mdds_0.11.2.tar.bz2
4d66429cefdfe7148c08ccf215456e5d  fix-includes.patch"
sha256sums="cd0a0dc8b35d6582efad6898546c86714eb058696ba26b0e7f8914faa002a5ab  mdds_0.11.2.tar.bz2
ad7d70674b1c43d40424d6ba516a9b1e36c0d1b6cf3f4c2c5a8c6363ada64480  fix-includes.patch"
sha512sums="b0e00d50be9b8319dabfe7e607849af27a52be9b46d770849b919444b905bf198d99edcefe1be15e6018b79839443b3a709fe22b84ac11e2267f02bec5139633  mdds_0.11.2.tar.bz2
abee8e19967c79a079122af29c7caa2da44a8ac5c6adf1b3a4aff3d2d68dc5ad428f4597234244842908225c97a978a4bf949208512b7c42067ae5690ef7624d  fix-includes.patch"