void-packages/srcpkgs/lmdb/template

34 lines
784 B
Bash

# Template file for 'lmdb'
pkgname=lmdb
version=0.9.16
revision=1
wrksrc="lmdb-LMDB_${version}"
hostmakedepends="git"
short_desc="Lightning Memory-Mapped Database Manager"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="OpenLDAP 2.8 license"
homepage="http://symas.com/mdb/"
distfiles="https://github.com/LMDB/lmdb/archive/LMDB_${version}.tar.gz"
checksum=49d7b40949f2ced9bc8b23ea6a89e75471a1c9126537a8b268c318a00b84322b
do_build() {
cd libraries/liblmdb
make XCFLAGS="$CFLAGS" CC="$CC"
}
do_install() {
cd libraries/liblmdb
make DESTDIR=${DESTDIR} prefix=/usr install
vlicense LICENSE
vlicense COPYRIGHT
}
lmdb-devel_package() {
short_desc+=" - development files"
depends="lmdb>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}