2012-12-30 10:35:17 +01:00
|
|
|
# Template file for 'leveldb'
|
|
|
|
pkgname=leveldb
|
2014-06-06 14:42:21 +02:00
|
|
|
version=1.15.0
|
|
|
|
revision=1
|
2012-12-30 10:35:17 +01: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"
|
2014-06-06 14:42:21 +02:00
|
|
|
checksum=d7c4ec571ef2ee9719f31db06344a1eba495e6abeeac1bc349d0d38a911c6680
|
2012-12-30 10:35:17 +01:00
|
|
|
|
|
|
|
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 10:15:49 +02:00
|
|
|
|
|
|
|
leveldb-devel_package() {
|
2014-06-06 14:42:21 +02:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share/doc
|
2014-06-06 14:42:21 +02:00
|
|
|
vmove usr/lib/*.so
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|