2012-12-30 09:35:17 +00:00
|
|
|
# Template file for 'leveldb'
|
|
|
|
pkgname=leveldb
|
|
|
|
version=1.8.0
|
2013-04-13 08:15:49 +00:00
|
|
|
revision=2
|
2012-12-30 09:35:17 +00:00
|
|
|
short_desc="A fast and lightweight key/value database library by Google"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="BSD"
|
|
|
|
homepage="http://code.google.com/p/leveldb"
|
|
|
|
distfiles="http://leveldb.googlecode.com/files/${pkgname}-${version}.tar.gz"
|
|
|
|
checksum=c75710786b48e25a58de54ddbc2b59c9b3332032a1e336b961d734b3e107ccad
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vmkdir usr/lib
|
|
|
|
vmkdir usr/include/leveldb
|
|
|
|
vmkdir usr/share/doc/leveldb
|
|
|
|
|
|
|
|
# libraries
|
|
|
|
vinstall libleveldb.so.${version%.?*} 755 usr/lib
|
|
|
|
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
|
|
|
|
vinstall LICENSE 644 usr/share/licenses/${pkgname}
|
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
leveldb-devel_package() {
|
|
|
|
depends="${sourcepkg}>=${version}"
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|