[arch-commits] Commit in python-bsddb/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Thu Mar 7 00:08:24 UTC 2019


    Date: Thursday, March 7, 2019 @ 00:08:22
  Author: bgyorgy
Revision: 437963

upgpkg: python-bsddb 6.2.6-2

Drop python2

Modified:
  python-bsddb/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++------------------------------
 1 file changed, 7 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-07 00:01:41 UTC (rev 437962)
+++ PKGBUILD	2019-03-07 00:08:22 UTC (rev 437963)
@@ -4,48 +4,25 @@
 # Contributor: Douglas Soares de Andrade <dsandrade at gmail.com>
 # Contributor: William Rea <sillywilly at gmail.com>
 
-pkgbase=python-bsddb
-_pkgbase=bsddb3
-pkgname=(python-bsddb python2-bsddb)
+pkgname=python-bsddb
+_pkgname=bsddb3
 pkgver=6.2.6
-pkgrel=1
+pkgrel=2
 pkgdesc='Python interface for BerkeleyDB'
 arch=('x86_64')
 url='https://www.jcea.es/programacion/pybsddb.htm'
 license=('BSD')
-makedepends=('python' 'python2')
-source=(https://files.pythonhosted.org/packages/source/b/$_pkgbase/$_pkgbase-$pkgver.tar.gz)
+depends=('db' 'python')
+source=(https://files.pythonhosted.org/packages/source/b/$_pkgname/$_pkgname-$pkgver.tar.gz)
 sha256sums=('42d621f4037425afcb16b67d5600c4556271a071a9a7f7f2c2b1ba65bc582d05')
 
-prepare() {
-  cp -a $_pkgbase-$pkgver{,-python2}
-
-  cd $_pkgbase-$pkgver-python2
-  sed -i 's@^#!.*python$@#!/usr/bin/python2@' Lib/bsddb/{dbshelve,test/test_dbtables}.py
-}
-
 build () {
-  # Build python 3 module
-  cd $_pkgbase-$pkgver
+  cd $_pkgname-$pkgver
   python3 setup.py --berkeley-db=/usr build
-
-  # Build python 2 module
-  cd ../$_pkgbase-$pkgver-python2
-  python2 setup.py --berkeley-db=/usr build
 }
 
 package_python-bsddb() {
-  depends=('db' 'python')
-
-  cd $_pkgbase-$pkgver
+  cd $_pkgname-$pkgver
   python3 setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-bsddb() {
-  depends=('db' 'python2')
-
-  cd $_pkgbase-$pkgver-python2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}


More information about the arch-commits mailing list