void-packages/srcpkgs/sdb/template

34 lines
800 B
Bash

# Template file for 'sdb'
pkgname=sdb
version=0.9.6
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="libglib-devel vala-devel"
short_desc="Simple key-value database with JSON support"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-3"
homepage="http://radare.org"
distfiles="${homepage}/get/sdb-${version}.tar.gz"
checksum=e4cf6e93c2a52484fd2b52aa1addab3ed37b4237bdf0e2fce86bee48533050f5
do_build() {
make CC=$CC ${makejobs}
}
post_install() {
# create soname symlink
ln -s libsdb.so.${version} ${DESTDIR}/usr/lib/libsdb.so.0
}
sdb-devel_package() {
depends="sdb>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}