void-packages/srcpkgs/db/template

55 lines
1.5 KiB
Text
Raw Normal View History

# Template file for 'db'
pkgname=db
2013-10-28 17:03:58 +00:00
version=5.3.28
2014-11-23 08:56:55 +00:00
revision=2
wrksrc="db-${version}"
build_wrksrc="build_unix"
build_style=gnu-configure
configure_script="../dist/configure"
configure_args="--enable-compat185 --enable-cxx --enable-static --enable-dbm"
make_build_args="LIBSO_LIBS=-lpthread"
short_desc="The Berkeley DB embedded database system"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html"
update_site="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index-082944.html"
update_ignore="6.* *NC"
license="BSD"
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
2013-10-28 17:03:58 +00:00
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
post_install() {
2013-03-25 23:14:46 +00:00
chmod 755 ${DESTDIR}/usr/bin/*
vmkdir usr/share/doc/${pkgname}-${version}
mv ${DESTDIR}/usr/docs/* ${DESTDIR}/usr/share/doc/${pkgname}-${version}
rmdir ${DESTDIR}/usr/docs
}
db-devel_package() {
2013-10-28 17:03:58 +00:00
depends="libdb>=${version}_${revision} libdb-cxx>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}
db-docs_package() {
short_desc+=" - documentation files"
noarch=yes
pkg_install() {
vmove usr/share/doc
}
}
libdb-cxx_package() {
short_desc+=" - C++ shared libraries"
pkg_install() {
vmove "usr/lib/libdb_cxx*.so*"
}
}
libdb_package() {
short_desc+=" - C shared libraries"
pkg_install() {
vmove "usr/lib/libdb.so*"
vmove "usr/lib/libdb-*.so*"
}
}