[arch-commits] Commit in python-kitchen/repos/community-any (PKGBUILD PKGBUILD)
Alad Wenter
alad at archlinux.org
Thu Jan 10 00:10:55 UTC 2019
Date: Thursday, January 10, 2019 @ 00:10:19
Author: alad
Revision: 421342
archrelease: copy trunk to community-any
Added:
python-kitchen/repos/community-any/PKGBUILD
(from rev 421341, python-kitchen/trunk/PKGBUILD)
Deleted:
python-kitchen/repos/community-any/PKGBUILD
----------+
PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++------------------------
1 file changed, 37 insertions(+), 24 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-10 00:09:50 UTC (rev 421341)
+++ PKGBUILD 2019-01-10 00:10:19 UTC (rev 421342)
@@ -1,24 +0,0 @@
-# Maintainer: Alad Wenter <alad at archlinux.org>
-# Contributor: John Jenkins twodopeshaggy at gmail.com
-# Contributor: Sean Anderson seanga2 at gmail.com
-pkgname=python-kitchen
-pkgver=1.2.5
-pkgrel=2
-pkgdesc="Useful snippets of python code"
-url="https://github.com/fedora-infra/kitchen"
-depends=('python')
-makedepends=('python' 'python-setuptools')
-license=('LGPL')
-arch=('any')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('1258af80868fc8c30170a43040b1eb5434bc5ffa5ff4ab98ffb9ee3d3c1e2f76')
-
-build() {
- cd "kitchen-$pkgver"
- python setup.py build
-}
-
-package() {
- cd "kitchen-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
Copied: python-kitchen/repos/community-any/PKGBUILD (from rev 421341, python-kitchen/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-01-10 00:10:19 UTC (rev 421342)
@@ -0,0 +1,37 @@
+# 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
+pkgver=1.2.5
+pkgrel=3
+pkgdesc="Useful snippets of python code"
+url="https://github.com/fedora-infra/kitchen"
+makedepends=('python-setuptools' 'python2-setuptools')
+license=('LGPL')
+arch=('any')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('1258af80868fc8c30170a43040b1eb5434bc5ffa5ff4ab98ffb9ee3d3c1e2f76')
+
+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')
+ 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