community/lmdb: add test suite, fix license

This commit is contained in:
A. Wilcox 2018-01-28 14:09:40 -06:00
parent ee49445187
commit 1741feb131
No known key found for this signature in database
GPG Key ID: CB29CB51922B9D14

View File

@ -2,11 +2,11 @@
# Maintainer: # Maintainer:
pkgname=lmdb pkgname=lmdb
pkgver=0.9.21 pkgver=0.9.21
pkgrel=1 pkgrel=2
pkgdesc="Lightning Memory-Mapped Database" pkgdesc="Lightning Memory-Mapped Database"
url="http://symas.com/mdb/" url="http://symas.com/mdb/"
arch="all" arch="all"
license="custom" license="OLDAP-2.8"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://github.com/LMDB/lmdb/archive/LMDB_$pkgver.tar.gz source="https://github.com/LMDB/lmdb/archive/LMDB_$pkgver.tar.gz
lmdb_make.patch" lmdb_make.patch"
@ -14,12 +14,17 @@ builddir="$srcdir/$pkgname-LMDB_$pkgver/libraries/liblmdb"
build() { build() {
cd "$builddir" cd "$builddir"
make || return 1 make
}
check() {
cd "$builddir"
make test
} }
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install
} }
tools() { tools() {