void-packages/srcpkgs/lmdb/template
2015-07-09 15:54:33 +02:00

33 lines
784 B
Bash

# Template file for 'lmdb'
pkgname=lmdb
version=0.9.15
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=a72b13db91e7c445e47194178915556b4ebcd6f9f64d48f60b1f830b0cfbd75a
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"
}
}