void-packages/srcpkgs/lmdb/template

33 lines
766 B
Bash

# Template file for 'lmdb'
pkgname=lmdb
version=0.9.31
revision=1
short_desc="Lightning Memory-Mapped Database Manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="OLDAP-2.8"
homepage="http://symas.com/mdb/"
distfiles="https://github.com/LMDB/lmdb/archive/LMDB_${version}.tar.gz"
checksum=dd70a8c67807b3b8532b3e987b0a4e998962ecc28643e1af5ec77696b081c9b0
do_build() {
cd libraries/liblmdb
make ${makejobs} XCFLAGS="$CFLAGS" CC="$CC"
}
do_install() {
cd libraries/liblmdb
make DESTDIR=${DESTDIR} CC="$CC" 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"
vmove "usr/lib/*.so"
}
}