[arch-commits] Commit in python-bsddb/trunk (PKGBUILD)
Eric Bélanger
eric at nymeria.archlinux.org
Tue Aug 6 03:12:58 UTC 2013
Date: Tuesday, August 6, 2013 @ 05:12:58
Author: eric
Revision: 95133
upgpkg: python-bsddb 6.0.0-1
Upstream update, Add prepare function
Modified:
python-bsddb/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-08-06 02:40:16 UTC (rev 95132)
+++ PKGBUILD 2013-08-06 03:12:58 UTC (rev 95133)
@@ -6,8 +6,8 @@
pkgbase=python-bsddb
pkgname=('python2-bsddb' 'python-bsddb')
-pkgver=5.3.0
-pkgrel=4
+pkgver=6.0.0
+pkgrel=1
pkgdesc="Python interface for BerkeleyDB"
license=('MIT')
arch=('i686' 'x86_64')
@@ -15,14 +15,14 @@
makedepends=('python2-distribute' 'python-distribute')
source=(http://pypi.python.org/packages/source/b/bsddb3/bsddb3-${pkgver}.tar.gz
LICENSE)
-sha1sums=('8743f6d7a2f5471094941a46859723aae88f3915'
+sha1sums=('ca5c204b2c9cf4fff396ba3d49994fe1a95d669f'
'ef4e4caf618781104dbf5824279ed39d127b4713')
-build () {
- cd "${srcdir}"
-
+prepare() {
cp -r bsddb3-${pkgver}{,-python2}
+}
+build () {
# Build python 3 module
cd bsddb3-${pkgver}
python3 setup.py --berkeley-db=/usr build
@@ -34,15 +34,17 @@
package_python2-bsddb() {
depends=('db' 'python2>=2.7')
- cd "${srcdir}/bsddb3-${pkgver}-python2"
+ cd bsddb3-${pkgver}-python2
python2 setup.py --berkeley-db=/usr install --root="${pkgdir}" --skip-build --optimize=1
+ sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \
+ "${pkgdir}"/usr/lib/python2.7/site-packages/bsddb3/{dbshelve.py,tests/test_dbtables.py}
install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
package_python-bsddb() {
depends=('db' 'python>=3.3')
- cd "${srcdir}/bsddb3-${pkgver}"
+ cd bsddb3-${pkgver}
python3 setup.py --berkeley-db=/usr install --root="${pkgdir}" --skip-build --optimize=1
install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
More information about the arch-commits
mailing list