New package: leveldb-1.8.0.

This commit is contained in:
Juan RP 2012-12-30 10:35:17 +01:00
parent bd0305ec97
commit 501296b97f
4 changed files with 46 additions and 0 deletions

View File

@ -1166,3 +1166,4 @@ libethumb.so.1 ethumb-1.7.4_1
libethumb_client.so.1 ethumb-1.7.4_1
libelementary.so.1 elementary-1.7.4_1
libjansson.so.4 jansson-2.4_1
libleveldb.so.1 leveldb-1.8.0_1

1
srcpkgs/leveldb-devel Symbolic link
View File

@ -0,0 +1 @@
leveldb

View File

@ -0,0 +1,10 @@
# Template file for 'leveldb-devel'.
#
noarch=yes
depends="${sourcepkg}>=${version}"
short_desc="${short_desc} -- development files"
do_install() {
vmove usr/include usr
vmove usr/share/doc usr/share
}

34
srcpkgs/leveldb/template Normal file
View File

@ -0,0 +1,34 @@
# Template file for 'leveldb'
pkgname=leveldb
version=1.8.0
revision=1
subpackages="${pkgname}-devel"
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}
}