void-packages/srcpkgs/leveldb/template

41 lines
963 B
Bash
Raw Normal View History

2012-12-30 10:35:17 +01:00
# Template file for 'leveldb'
pkgname=leveldb
2015-08-16 10:21:04 +02:00
version=1.18
2015-08-31 21:46:23 +02:00
revision=2
2015-08-16 10:21:04 +02:00
build_style=gnu-makefile
2012-12-30 10:35:17 +01:00
short_desc="A fast and lightweight key/value database library by Google"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-12-30 10:35:17 +01:00
license="BSD"
2015-08-16 10:21:04 +02:00
homepage="https://github.com/google/leveldb"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=4aa1a7479bc567b95a59ac6fb79eba49f61884d6fd400f20b7af147d54c5cee5
2012-12-30 10:35:17 +01:00
do_install() {
vmkdir usr/lib
vmkdir usr/include/leveldb
vmkdir usr/share/doc/leveldb
# libraries
2015-08-31 21:46:23 +02:00
vinstall libleveldb.so.${version} 755 usr/lib
2012-12-30 10:35:17 +01:00
cp -P libleveldb.so{,.1} ${DESTDIR}/usr/lib
# headers
install -m644 include/leveldb/* ${DESTDIR}/usr/include/leveldb
# documentation
cp -r doc/* ${DESTDIR}/usr/share/doc/${pkgname}
# license
2015-08-16 10:21:04 +02:00
vlicense LICENSE
2012-12-30 10:35:17 +01:00
}
leveldb-devel_package() {
2014-06-06 14:42:21 +02:00
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/doc
2014-06-06 14:42:21 +02:00
vmove usr/lib/*.so
}
}