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

Eli Schwartz eschwartz at archlinux.org
Fri Nov 13 12:14:00 UTC 2020


    Date: Friday, November 13, 2020 @ 12:14:00
  Author: eschwartz
Revision: 753891

python-genshi: drop no longer used python2 split package

Modified:
  python-genshi/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++-------------------------
 1 file changed, 8 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-13 12:12:06 UTC (rev 753890)
+++ PKGBUILD	2020-11-13 12:14:00 UTC (rev 753891)
@@ -1,49 +1,32 @@
 # Maintainer : Eli Schwartz <eschwartz at archlinux.org>
 
-pkgname=(python-genshi python2-genshi)
+pkgname=python-genshi
 pkgver=0.7.3
 pkgrel=2
 pkgdesc="Python toolkit for stream-based generation of output for the web."
+arch=('x86_64')
 url="https://genshi.edgewall.org/"
 license=("BSD")
-arch=('x86_64')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=("https://github.com/edgewall/genshi/archive/${pkgver}.tar.gz")
 sha256sums=('6b6992618069d9535ec5ee42087ab04846e6df9bba8283157843ceb516ca85b5')
 
-prepare() {
-    # uses 2to3 so need to build python2/python3 in separate dirs
-    cp -a "${srcdir}"/genshi-${pkgver}{,-py2}
-}
-
 build() {
     cd "${srcdir}"/genshi-${pkgver}
+
     python setup.py build
-
-    cd "${srcdir}"/genshi-${pkgver}-py2
-    python2 setup.py build
 }
 
 check() {
     cd "${srcdir}"/genshi-${pkgver}
+
     python setup.py test
-
-    cd "${srcdir}"/genshi-${pkgver}-py2
-    python2 setup.py test
 }
 
-package_python-genshi() {
-    depends=('python')
+package() {
+    cd "${srcdir}"/genshi-${pkgver}
 
-    cd "${srcdir}"/genshi-${pkgver}
     python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
     install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
 }
-
-package_python2-genshi() {
-    depends=('python2')
-
-    cd "${srcdir}"/genshi-${pkgver}-py2
-    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
-}



More information about the arch-commits mailing list