[arch-commits] Commit in python-rope/trunk (PKGBUILD)
Morten Linderud
foxboron at archlinux.org
Tue Jan 9 14:39:55 UTC 2018
Date: Tuesday, January 9, 2018 @ 14:39:54
Author: foxboron
Revision: 280698
upgpkg: python-rope 0.10.7-1
Updated python-rope and merged python2
Modified:
python-rope/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++++++++----------
1 file changed, 25 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-09 14:05:10 UTC (rev 280697)
+++ PKGBUILD 2018-01-09 14:39:54 UTC (rev 280698)
@@ -1,31 +1,46 @@
# $Id: PKGBUILD 64151 2012-02-09 14:12:07Z arodseth $
# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
# Contributor: Thomas Dziedzic <gostrc at gmail.com>
# Contributor: Nicolás de la torre <ndelatorre at gmail.com>
# Contributor: Ryan Coyner <rcoyner at gmail.com>
# Contributor: Jens Maucher <defcon at archlinux.us>
-pkgname=python-rope
+pkgbase=python-rope
+pkgname=(python-rope python2-rope)
pkgver=0.10.7
pkgrel=1
pkgdesc='Refactoring library'
arch=('any')
-url='https://pypi.python.org/pypi/rope'
+url='https://github.com/python-rope/rope'
license=('GPL')
-depends=('python')
-source=("https://pypi.python.org/packages/7e/fc/702c0293b57edd4d70146e36f9413c40339a701a43c8fa6918fb9d834913/rope-0.10.7.tar.gz")
-md5sums=('eb1bbeb7e366fe82c222ee39144ebafa')
+makedepends=('python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-rope/rope/archive/$pkgver.tar.gz")
+sha256sums=('4426d16686774f2b3d0431e5e54e7e261eab967e9e50e0af7fdaf95436057d74')
-build() {
- cd "rope-$pkgver"
+prepare() {
+ cp -a rope-$pkgver{,-py2}
+}
+build(){
+ cd "$srcdir/rope-$pkgver"
python setup.py build
+
+ cd "$srcdir/rope-$pkgver-py2"
+ python2 setup.py build
}
-package() {
+package_python2-rope() {
+ depends=("python2")
+ cd "rope-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+package_python-rope() {
+ depends=("python2")
cd "rope-$pkgver"
-
- python setup.py install --root="$pkgdir" --optimize=1
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list