diff options
author | root <root@rshg054.dnsready.net> | 2011-11-05 23:14:55 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-11-05 23:14:55 +0000 |
commit | 82fd7f658509afe9737e14e8d1ee9fefe13c9d1f (patch) | |
tree | 9c41c06e2e0b0ef270dc8eec367171163497f622 /testing/db | |
parent | 3026bb55941e3b04b56f5fb41b88941c6c2ce0cd (diff) |
Sat Nov 5 23:14:55 UTC 2011
Diffstat (limited to 'testing/db')
-rw-r--r-- | testing/db/PKGBUILD | 32 | ||||
-rw-r--r-- | testing/db/db.install | 5 |
2 files changed, 37 insertions, 0 deletions
diff --git a/testing/db/PKGBUILD b/testing/db/PKGBUILD new file mode 100644 index 000000000..7577ca553 --- /dev/null +++ b/testing/db/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 142046 2011-11-04 22:40:39Z stephane $ +# Maintainer: Stéphane Gaudreault <stephane@archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: Andreas Radke <andyrtr@archlinux.org> + +pkgname=db +pkgver=5.2.36 +pkgrel=2 +pkgdesc="The Berkeley DB embedded database system" +arch=('i686' 'x86_64') +url="http://www.oracle.com/technology/software/products/berkeley-db/index.html" +license=('custom') +depends=('gcc-libs' 'sh') +options=('!libtool') +install=db.install +source=(http://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz) +sha1sums=('1a7997e5bcdf504a439f90d9eaed63864806ed5f') + +build() { + cd "${srcdir}/$pkgname-${pkgver}/build_unix" + ../dist/configure --prefix=/usr --enable-compat185 \ + --enable-shared --enable-static --enable-cxx --enable-dbm + make LIBSO_LIBS=-lpthread +} + +package() { + cd "${srcdir}/$pkgname-${pkgver}/build_unix" + make DESTDIR="${pkgdir}" install + rm -rf "${pkgdir}"/usr/docs + install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE \ + "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/testing/db/db.install b/testing/db/db.install new file mode 100644 index 000000000..03b64042d --- /dev/null +++ b/testing/db/db.install @@ -0,0 +1,5 @@ +post_upgrade() { + if [ "$(vercmp $2 5.1)" -lt 0 ]; then + echo " >> Major version update. Consider running db_upgrade on Berkeley DB databases." + fi +} |