void-packages/srcpkgs/sdb/template

44 lines
1.1 KiB
Text
Raw Normal View History

# Template file for 'sdb'
pkgname=sdb
2013-05-10 09:58:02 +00:00
version=0.6.4
2013-05-11 08:34:04 +00:00
revision=2
short_desc="Simple key-value database with JSON support"
maintainer="pancake <pancake@nopcode.org>"
license="LGPL-3"
homepage="https://github.com/radare/sdb"
long_desc="
sdb is a simple key/value database with disk storage. mcsdbd is a memcache
server with disk storage based on sdb. sdbtypes is a vala library that
implements several data structures on top of an sdb or memcache instance."
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="libglib-devel vala-devel"
2013-05-10 08:50:18 +00:00
do_fetch() {
git clone -b ${version} git://github.com/radare/sdb.git sdb-${version}
}
2013-05-11 08:34:04 +00:00
post_install() {
# Create shlib symlinks.
ln -sfr ${DESTDIR}/usr/lib/libsdb.so.0.0.0 ${DESTDIR}/usr/lib/libsdb.so
ln -sfr ${DESTDIR}/usr/lib/libsdb.so.0.0.0 ${DESTDIR}/usr/lib/libsdb.so.0
}
sdb-devel_package() {
depends="sdb>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}
sdb_package() {
pkg_install() {
vmove usr
}
}