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

Alad Wenter alad at archlinux.org
Sat Mar 2 16:12:42 UTC 2019


    Date: Saturday, March 2, 2019 @ 16:12:42
  Author: alad
Revision: 437393

remove python2-kitchen

Modified:
  python-kitchen/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-02 16:11:40 UTC (rev 437392)
+++ PKGBUILD	2019-03-02 16:12:42 UTC (rev 437393)
@@ -1,12 +1,12 @@
 # Maintainer: Alad Wenter <alad at archlinux.org>
 # Contributor: John Jenkins twodopeshaggy at gmail.com
 # Contributor: Sean Anderson seanga2 at gmail.com
-pkgname=('python-kitchen' 'python2-kitchen')
-pkgbase=python-kitchen
+pkgname=python-kitchen
 pkgver=1.2.5
 pkgrel=3
 pkgdesc="Useful snippets of python code"
 url="https://github.com/fedora-infra/kitchen"
+depends=('python')
 makedepends=('python-setuptools' 'python2-setuptools')
 license=('LGPL')
 arch=('any')
@@ -15,23 +15,10 @@
 
 build() {
     cd "kitchen-$pkgver"
-
-    # kitchen has separate source trees for python2 and python3
     python setup.py build
-    python2 setup.py build
 }
 
-package_python-kitchen() {
-    depends=('python')
+package() {
     cd "kitchen-$pkgver"
-
     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }
-
-package_python2-kitchen() {
-    depends=('python2')
-    cd "kitchen-$pkgver"
-
-    python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-    sed -i 's/python/python2/' "$pkgdir/usr/lib/python2.7/site-packages/kitchen/pycompat24/base64/_base64.py"
-}



More information about the arch-commits mailing list