summaryrefslogtreecommitdiff
path: root/community/python-bsddb/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/python-bsddb/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/python-bsddb/PKGBUILD')
-rw-r--r--community/python-bsddb/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/python-bsddb/PKGBUILD b/community/python-bsddb/PKGBUILD
new file mode 100644
index 000000000..84b7c181a
--- /dev/null
+++ b/community/python-bsddb/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 40159 2011-02-21 14:49:30Z stephane $
+# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
+# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
+# Contributor: William Rea <sillywilly@gmail.com>
+
+pkgname=python-bsddb
+pkgver=5.1.0
+pkgrel=3
+pkgdesc="Python interface for BerkeleyDB"
+license=('MIT')
+arch=('i686' 'x86_64')
+url="http://www.jcea.es/programacion/pybsddb.htm"
+depends=('db' 'python')
+source=("http://pypi.python.org/packages/source/b/bsddb3/bsddb3-${pkgver}.tar.gz"
+ 'LICENSE')
+md5sums=('6d72d2533f0f3a4bb4b1207598624d6a'
+ 'f412b3fb37739f1c4be64c1e7a5dee67')
+
+build () {
+ cd ${srcdir}/bsddb3-${pkgver}
+ python setup.py --berkeley-db=/usr build
+}
+
+package() {
+ cd ${srcdir}/bsddb3-${pkgver}
+ python setup.py --berkeley-db=/usr install --root=${pkgdir} --optimize=1
+
+ install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}