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

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


    Date: Thursday, March 7, 2019 @ 00:17:57
  Author: bgyorgy
Revision: 437968

upgpkg: python-mygpoclient 1.8-3

Drop python2

Modified:
  python-mygpoclient/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++--------------------
 1 file changed, 7 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-07 00:14:21 UTC (rev 437967)
+++ PKGBUILD	2019-03-07 00:17:57 UTC (rev 437968)
@@ -5,32 +5,19 @@
 # Contributor: Jonas Heinrich <onny at project-insanity.org>
 # Contributor: Markus Golser <elmargol at googlemail.com>
 
-_pkgbase=mygpoclient
-pkgbase=python-$_pkgbase
-pkgname=(python-mygpoclient python2-mygpoclient)
+_pkgname=mygpoclient
+pkgname=python-$_pkgname
 pkgver=1.8
-pkgrel=2
+pkgrel=3
 pkgdesc='Python client Library for the gpodder.net web service'
 arch=(any)
 url='https://github.com/gpodder/mygpoclient'
 license=(GPL3)
-depends=(python python2)
-source=($pkgbase-$pkgver.tar.gz::https://github.com/gpodder/$_pkgbase/archive/$pkgver.tar.gz)
+depends=(python)
+source=($pkgname-$pkgver.tar.gz::https://github.com/gpodder/$_pkgname/archive/$pkgver.tar.gz)
 sha256sums=('65fcb3ab220a2ba2d32a77f969b423a2f663413b6c485b7b02e5a955b28e68d2')
 
-package_python-mygpoclient() {
-  depends=(python)
-
-  cd $_pkgbase-$pkgver
+package() {
+  cd $_pkgname-$pkgver
   python3 setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-mygpoclient() {
-  depends=(python2)
-
-  cd $_pkgbase-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  for file in "$pkgdir"/usr/bin/*; do mv "$file" "${file}2"; done
-  mv "$pkgdir"/usr/share/man/man1/mygpo-bpsync{,2}.1
-}


More information about the arch-commits mailing list