2009-10-13 06:54:09 +02:00
|
|
|
# Template file for 'db'
|
|
|
|
pkgname=db
|
2013-10-28 18:03:58 +01:00
|
|
|
version=5.3.28
|
2015-11-02 08:27:12 +01:00
|
|
|
revision=6
|
2010-01-14 00:16:21 +01:00
|
|
|
wrksrc="db-${version}"
|
2014-02-11 03:44:30 +01:00
|
|
|
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"
|
2013-05-09 16:13:04 +02:00
|
|
|
short_desc="The Berkeley DB embedded database system"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-02-07 00:59:18 +01:00
|
|
|
homepage="http://www.oracle.com/technetwork/products/berkeleydb/overview/index.html"
|
|
|
|
license="BSD"
|
|
|
|
distfiles="http://download.oracle.com/berkeley-db/db-${version}.tar.gz"
|
2013-10-28 18:03:58 +01:00
|
|
|
checksum=e0a992d740709892e81f9d93f06daf305cf73fb81b545afe72478043172c3628
|
2013-05-09 16:13:04 +02:00
|
|
|
|
2014-02-11 03:44:30 +01:00
|
|
|
post_install() {
|
2013-03-26 00:14:46 +01:00
|
|
|
chmod 755 ${DESTDIR}/usr/bin/*
|
2013-04-10 23:28:39 +02:00
|
|
|
vmkdir usr/share/doc/${pkgname}-${version}
|
|
|
|
mv ${DESTDIR}/usr/docs/* ${DESTDIR}/usr/share/doc/${pkgname}-${version}
|
2009-10-13 06:54:09 +02:00
|
|
|
rmdir ${DESTDIR}/usr/docs
|
|
|
|
}
|
2013-04-10 23:28:39 +02:00
|
|
|
|
|
|
|
db-devel_package() {
|
2013-10-28 18:03:58 +01:00
|
|
|
depends="libdb>=${version}_${revision} libdb-cxx>=${version}_${revision}"
|
2013-05-09 16:13:04 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-10 23:28:39 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
2013-05-09 16:13:04 +02:00
|
|
|
vmove "usr/lib/*.a"
|
2013-04-10 23:28:39 +02:00
|
|
|
}
|
|
|
|
}
|
2015-09-28 09:25:13 +02:00
|
|
|
db-doc_package() {
|
2013-05-09 16:13:04 +02:00
|
|
|
short_desc+=" - documentation files"
|
2013-04-10 23:28:39 +02:00
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
libdb-cxx_package() {
|
2013-05-09 16:13:04 +02:00
|
|
|
short_desc+=" - C++ shared libraries"
|
2013-04-10 23:28:39 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libdb_cxx*.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
libdb_package() {
|
2013-05-09 16:13:04 +02:00
|
|
|
short_desc+=" - C shared libraries"
|
2013-04-10 23:28:39 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/libdb.so*"
|
|
|
|
vmove "usr/lib/libdb-*.so*"
|
|
|
|
}
|
|
|
|
}
|