aboutsummaryrefslogtreecommitdiffstats
path: root/community/lmdb/APKBUILD
blob: 68ea44b130b33ca9b9ed67cf45d98251c0e3f4b4 (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
# Contributor: Olivier Mauras <olivier@mauras.ch>
# Maintainer: Olivier Mauras <olivier@mauras.ch>
pkgname=lmdb
pkgver=0.9.18
pkgrel=0
pkgdesc="Lightning Memory-Mapped Database"
url="http://symas.com/mdb/"
arch="all"
license="custom"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://github.com/LMDB/lmdb/archive/LMDB_$pkgver.tar.gz
	lmdb_make.patch
	"

_builddir="$srcdir"/$pkgname-LMDB_$pkgver/libraries/liblmdb
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"
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

tools() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

md5sums="8b7eeb8a6c30b2763581de455d10441b  LMDB_0.9.18.tar.gz
b7f2fe7bd4c0519c8ade94f74555c0b5  lmdb_make.patch"
sha256sums="dd35b471d6eea84f48f2feece13d121abf59ef255308b8624a36223ffbdf9989  LMDB_0.9.18.tar.gz
fdf996128602440342d8cb4583c93ca55bc92c498200ca07b436858850815525  lmdb_make.patch"
sha512sums="394e88d99d446eb30771d7cf7a661584683a0d6d8e976cc561b5eecbb2a5d0817bbd59994002afa4eae6c86a39f05f50ebc2eff77cd70dd8c67225df4611f5e6  LMDB_0.9.18.tar.gz
bce8363291cac22b4721181937e2e2504b88916f433813a84db86da9d5e8cbeb7e7b520d9925e9d51c5d6099b158479f1de3abbfa5556f720c5170fb8c44fab7  lmdb_make.patch"