Date: Friday, September 25, 2020 @ 05:33:14
  Author: eschwartz
Revision: 711960

upgpkg: python-apsw 3.33.0-2: drop python2

no longer used by calibre, and is therefore not needed at all

Modified:
  python-apsw/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++---------------------
 1 file changed, 7 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2020-09-25 05:28:33 UTC (rev 711959)
+++ PKGBUILD    2020-09-25 05:33:14 UTC (rev 711960)
@@ -3,15 +3,14 @@
 # Contributor: Linmiao Xu <linmiao...@gmail.com>
 # Contributor: Juan Miguel Cejuela <jua...@jmcejuela.net>
 
-pkgbase=python-apsw
-pkgname=('python-apsw' 'python2-apsw')
+pkgname=python-apsw
 pkgver=3.33.0
-pkgrel=1
+pkgrel=2
+pkgdesc="Python wrapper for SQLite"
 arch=('x86_64')
 url="https://github.com/rogerbinns/apsw";
 license=('MIT')
-depends=('sqlite')
-makedepends=('python' 'python2')
+depends=('python' 'sqlite')
 
source=("apsw-$pkgver-r1.tar.gz::https://github.com/rogerbinns/apsw/archive/$pkgver-r1.tar.gz";)
 
sha512sums=('ff0a93e314531d8fe21969d3efc7ccaf2c1a11b2e1a14a46ef9e6325ca3e6a911edee29152a77a2482e7d59fc9f6dab97955daa33ea82df140c3bb6259b6ee67')
 
b2sums=('01cb3eee3d3f4ccbef695292006b466bbb91ff9734ae61e2b41210b9fd7d7fc52242121fdfeea1fa2bda81712c94c3d584688cf6406951edad7a7fb4af7c222e')
@@ -20,7 +19,6 @@
   cd apsw-${pkgver}-r1
 
   python setup.py build --enable=load_extension
-  python2 setup.py build --enable=load_extension
 }
 
 check() {
@@ -27,25 +25,13 @@
   cd "$srcdir"/apsw-${pkgver}-r1
 
   # do glob expansion in variable assignment
-  pythonpaths=("$PWD/build/lib.linux-$CARCH"-3* 
"$PWD/build/lib.linux-$CARCH-"2*)
+  pythonpaths=("$PWD/build/lib.linux-$CARCH"-3*)
   PYTHONPATH="${pythonpaths[0]}" python setup.py test
-  PYTHONPATH="${pythonpaths[1]}" python2 setup.py test
 }
 
-package_python-apsw() {
-depends+=('python')
-pkgdesc="Python wrapper for SQLite"
+package() {
   cd "$srcdir"/apsw-${pkgver}-r1
+
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-apsw() {
-depends+=('python2')
-pkgdesc="Python2 wrapper for SQLite"
-  cd "$srcdir"/apsw-${pkgver}-r1
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Reply via email to