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

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


    Date: Thursday, March 7, 2019 @ 00:14:15
  Author: bgyorgy
Revision: 437966

upgpkg: python-podcastparser 0.6.4-2

Drop python2

Modified:
  python-podcastparser/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++++------------------
 1 file changed, 7 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-07 00:12:37 UTC (rev 437965)
+++ PKGBUILD	2019-03-07 00:14:15 UTC (rev 437966)
@@ -1,31 +1,20 @@
 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
 # Contributor: Jan Magnus Brevik <janmbrevik at gmail.com>
 
-_pkgbase=podcastparser
-pkgbase=python-$_pkgbase
-pkgname=(python-podcastparser python2-podcastparser)
+_pkgname=podcastparser
+pkgname=python-$_pkgname
 pkgver=0.6.4
-pkgrel=1
+pkgrel=2
 pkgdesc='Simplified, fast RSS parsing library in Python'
 arch=(any)
 url='https://github.com/gpodder/podcastparser'
 license=(ISC)
-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=('fac02a56b755f81c11f186bec5a6f813671e600f413ade7ea9690e47eb27bd69')
 
-package_python-podcastparser() {
-  depends=(python)
-
-  cd $_pkgbase-$pkgver
+package() {
+  cd $_pkgname-$pkgver
   python3 setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_python2-podcastparser() {
-  depends=(python2)
-
-  cd $_pkgbase-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}


More information about the arch-commits mailing list