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

Jan Steffens heftig at archlinux.org
Sat Dec 7 17:17:19 UTC 2019


    Date: Saturday, December 7, 2019 @ 17:17:19
  Author: heftig
Revision: 536290

2.1.0-3: drop python2

Modified:
  pycdio/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++++---------------------------
 1 file changed, 11 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-07 16:49:38 UTC (rev 536289)
+++ PKGBUILD	2019-12-07 17:17:19 UTC (rev 536290)
@@ -1,48 +1,32 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Alessandro Pezzoni <donbex at nerdshack dot com>
 
 pkgbase=pycdio
-pkgname=(python-pycdio python2-pycdio)
+pkgname=(python-pycdio)
 pkgver=2.1.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Python OO interface to libcdio (CD Input and Control library)"
 url="https://pypi.python.org/pypi/pycdio"
 arch=(x86_64)
 license=(GPL)
-makedepends=(libcdio python-setuptools python2-setuptools swig)
+depends=(python libcdio)
+makedepends=(python-setuptools swig)
 source=("https://pypi.io/packages/source/p/$pkgbase/$pkgbase-$pkgver.tar.gz")
 sha512sums=('dc18fbd212f7040b8b06efaf263b17568e9c2d089cff7dfc4dda50a7225059e44c9c86e2d81ade92cf09c823f7189b5723fb601cb12f0884dc04e9f5418c5927')
 
 prepare() {
   cd $pkgbase-$pkgver
-
-  # patches here
-
-  cd ..
-  cp -a $pkgbase-$pkgver python2
-  mv $pkgbase-$pkgver python3
 }
 
 build() {
-  cd python3
-  python3 setup.py build
-
-  cd ../python2
-  python2 setup.py build
+  cd $pkgbase-$pkgver
+  python setup.py build
 }
 
 package_python-pycdio() {
-  depends=(python3 libcdio)
-
-  cd python3
-  python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  cd $pkgbase-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }
 
-package_python2-pycdio() {
-  depends=(python2 libcdio)
-
-  cd python2
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-
-# vim:set sw=2 sts=2 et:
+# vim:set sw=2 et:


More information about the arch-commits mailing list