diff options
author | root <root@rshg054.dnsready.net> | 2012-06-02 00:01:53 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-06-02 00:01:53 +0000 |
commit | 211709a2f09bd677aa1deac0dc82fde6ce1c8626 (patch) | |
tree | bd95688134860851652ff3d47f376702917f1b76 /staging/db | |
parent | 7087de492f6effbd08f6b644ce85d1b1ea58fb14 (diff) |
Sat Jun 2 00:01:53 UTC 2012
Diffstat (limited to 'staging/db')
-rw-r--r-- | staging/db/PKGBUILD | 32 | ||||
-rw-r--r-- | staging/db/db.install | 5 |
2 files changed, 37 insertions, 0 deletions
diff --git a/staging/db/PKGBUILD b/staging/db/PKGBUILD new file mode 100644 index 000000000..c0a9f2192 --- /dev/null +++ b/staging/db/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 160310 2012-05-31 21:26:09Z stephane $ +# Maintainer: Stéphane Gaudreault <stephane@archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: Andreas Radke <andyrtr@archlinux.org> + +pkgname=db +pkgver=5.3.21 +pkgrel=1 +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=('32e43c4898c8996750c958a90c174bd116fcba83') + +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 -r "${pkgdir}"/usr/docs + install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE \ + "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/staging/db/db.install b/staging/db/db.install new file mode 100644 index 000000000..03b64042d --- /dev/null +++ b/staging/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 +} |