APKBUILD 924 Bytes
Newer Older
1
# Contributor: Olivier Mauras <olivier@mauras.ch>
2
# Maintainer:
Olivier Mauras's avatar
Olivier Mauras committed
3
pkgname=lmdb
prspkt's avatar
prspkt committed
4 5
pkgver=0.9.22
pkgrel=0
Olivier Mauras's avatar
Olivier Mauras committed
6
pkgdesc="Lightning Memory-Mapped Database"
prspkt's avatar
prspkt committed
7
url="http://symas.com/mdb"
Olivier Mauras's avatar
Olivier Mauras committed
8
arch="all"
9
license="OLDAP-2.8"
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"
17 18 19 20 21 22
	make
}

check() {
	cd "$builddir"
	make test
Olivier Mauras's avatar
Olivier Mauras committed
23 24 25
}

package() {
26
	cd "$builddir"
27
	make DESTDIR="$pkgdir" install
Olivier Mauras's avatar
Olivier Mauras committed
28 29
}

30 31 32 33 34
tools() {
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

prspkt's avatar
prspkt committed
35
sha512sums="49afca13b9683ed571c274380bb5e111236903b12d19bcb8781d6bbc00f711766b0d62de0b36536c85309cc9ff9e9d0aaa708e27bae9be6cfcaed8ba91e5545d  LMDB_0.9.22.tar.gz
36
151022cad94d2138146e3cd36622171f07fb03cc66d116ac9ce766c61a8b1aa65b521bfda88b27456204f53ecd430bdeddb4d7786956a12ed0cd53f8323ffd03  lmdb_make.patch"