summaryrefslogtreecommitdiff
path: root/testing/db/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-21 23:14:42 +0000
committerroot <root@rshg054.dnsready.net>2011-09-21 23:14:42 +0000
commitb7f839da11975b9f2a964a82d591b7a8628f0931 (patch)
treebb6a7aee842680de3a5038e34d27256ca1d389ef /testing/db/PKGBUILD
parentae08410274473c5ab78d300ea2365c4b1070cc61 (diff)
Wed Sep 21 23:14:42 UTC 2011
Diffstat (limited to 'testing/db/PKGBUILD')
-rw-r--r--testing/db/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/db/PKGBUILD b/testing/db/PKGBUILD
new file mode 100644
index 000000000..0e5efe384
--- /dev/null
+++ b/testing/db/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 138357 2011-09-20 16:16:07Z 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=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=('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
+}