void-packages/srcpkgs/lmdb/template

36 lines
756 B
Plaintext

# Template file for 'lmdb'
pkgname=lmdb
version=0.9.13
revision=1
hostmakedepends="git"
short_desc="Lightning Memory-Mapped Database Manager"
maintainer="Juan RP <xtraeme@gmail.com>"
license="OpenLDAP 2.8 license"
homepage="http://symas.com/mdb/"
do_fetch() {
git clone -b LMDB_${version} git://gitorious.org/mdb/mdb.git lmdb-${version}
}
do_build() {
cd libraries/liblmdb
make XCFLAGS="$CFLAGS" CC="$CC"
}
do_install() {
cd libraries/liblmdb
make DESTDIR=${DESTDIR} prefix=/usr install
vinstall LICENSE 644 usr/share/licenses/lmdb
vinstall COPYRIGHT 644 usr/share/licenses/lmdb
}
lmdb-devel_package() {
short_desc+=" - development files"
depends="lmdb>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}