[arch-commits] Commit in python-kitchen/trunk (PKGBUILD)
Alad Wenter
alad at archlinux.org
Thu Jan 10 00:09:57 UTC 2019
Date: Thursday, January 10, 2019 @ 00:09:50
Author: alad
Revision: 421341
upgpkg: python-kitchen 1.2.5-3
Modified:
python-kitchen/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-10 00:01:14 UTC (rev 421340)
+++ PKGBUILD 2019-01-10 00:09:50 UTC (rev 421341)
@@ -1,13 +1,13 @@
# Maintainer: Alad Wenter <alad at archlinux.org>
# Contributor: John Jenkins twodopeshaggy at gmail.com
# Contributor: Sean Anderson seanga2 at gmail.com
-pkgname=python-kitchen
+pkgname=('python-kitchen' 'python2-kitchen')
+pkgbase=python-kitchen
pkgver=1.2.5
-pkgrel=2
+pkgrel=3
pkgdesc="Useful snippets of python code"
url="https://github.com/fedora-infra/kitchen"
-depends=('python')
-makedepends=('python' 'python-setuptools')
+makedepends=('python-setuptools' 'python2-setuptools')
license=('LGPL')
arch=('any')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
@@ -15,10 +15,23 @@
build() {
cd "kitchen-$pkgver"
+
+ # kitchen has separate source trees for python2 and python3
python setup.py build
+ python2 setup.py build
}
-package() {
+package_python-kitchen() {
+ depends=('python')
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