APKBUILD 1.21 KB
Newer Older
1 2
# Contributor: Olivier Mauras <olivier@mauras.ch>
# Maintainer: Olivier Mauras <olivier@mauras.ch>
Olivier Mauras's avatar
Olivier Mauras committed
3
pkgname=lmdb
4
pkgver=0.9.19
5
pkgrel=0
Olivier Mauras's avatar
Olivier Mauras committed
6 7 8 9
pkgdesc="Lightning Memory-Mapped Database"
url="http://symas.com/mdb/"
arch="all"
license="custom"
10
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
Olivier Mauras's avatar
Olivier Mauras committed
11
source="https://github.com/LMDB/lmdb/archive/LMDB_$pkgver.tar.gz
12 13
	lmdb_make.patch"
builddir="$srcdir/$pkgname-LMDB_$pkgver/libraries/liblmdb"
Olivier Mauras's avatar
Olivier Mauras committed
14 15

build() {
16
	cd "$builddir"
Olivier Mauras's avatar
Olivier Mauras committed
17 18 19 20
	make || return 1
}

package() {
21
	cd "$builddir"
Olivier Mauras's avatar
Olivier Mauras committed
22 23 24
	make DESTDIR="$pkgdir" install || return 1
}

25 26 27 28 29
tools() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

30 31 32 33 34 35
md5sums="3fedea4a16676b7585b025349b3201c4  LMDB_0.9.19.tar.gz
4c45f73c0779451e07b2e3360aa5e719  lmdb_make.patch"
sha256sums="108532fb94c6f227558d45be3f3347b52539f0f58290a7bb31ec06c462d05326  LMDB_0.9.19.tar.gz
6287fb65f197079e1ad1f51255effc0f6f5f5179dd0aa106fc21f5b8265e5682  lmdb_make.patch"
sha512sums="1d9825f09592ad92a540a1dec232cf6649f41cc67b0d59dc8958a71f4090f347c84995f32a166e2c2efecb862981f455814dd07af99bc3489e42fe3fd8bc6191  LMDB_0.9.19.tar.gz
151022cad94d2138146e3cd36622171f07fb03cc66d116ac9ce766c61a8b1aa65b521bfda88b27456204f53ecd430bdeddb4d7786956a12ed0cd53f8323ffd03  lmdb_make.patch"