[arch-commits] Commit in python-d2to1/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Mar 17 10:31:44 UTC 2019
Date: Sunday, March 17, 2019 @ 10:31:43
Author: felixonmars
Revision: 442342
upgpkg: python-d2to1 0.2.12.post1-5
remove python2 sibling
Modified:
python-d2to1/trunk/PKGBUILD
----------+
PKGBUILD | 40 +++++++++++-----------------------------
1 file changed, 11 insertions(+), 29 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-03-17 10:31:38 UTC (rev 442341)
+++ PKGBUILD 2019-03-17 10:31:43 UTC (rev 442342)
@@ -2,43 +2,25 @@
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
# Contributor: Limao Luo <luolimao+AUR at gmail.com>
-pkgbase=python-d2to1
-pkgname=(python-d2to1 python2-d2to1)
+pkgname=python-d2to1
pkgver=0.2.12.post1
-pkgrel=4
+pkgrel=5
pkgdesc="Python library that allows using distutils2-like setup.cfg files for a package's metadata with a distribute/setuptools setup.py script"
arch=('any')
url='https://pypi.python.org/pypi/d2to1'
license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=(https://files.pythonhosted.org/packages/source/d/${pkgname#*-}/${pkgname#*-}-$pkgver.tar.gz)
+depends=('python')
+makedepends=('python-setuptools')
+source=(https://files.pythonhosted.org/packages/source/d/d2to1/d2to1-$pkgver.tar.gz)
sha512sums=('89890afc78b21d78f42ef5c920d377cd58075829e025c512d86138d52943ce8b71d1245bf267f76f775c6a69bf81bf9881322bd64b0e75ae088134e6b66f4d2d')
-prepare(){
- cp -a ${pkgbase#*-}-$pkgver/ ${pkgbase}2-$pkgver
- find ${pkgbase}2-$pkgver -name \*.py -exec sed -i '1s/python$/&2/' {} +
-}
-
build() {
- cd "$srcdir/${pkgbase#*-}-$pkgver"
- python setup.py build
-
- cd "$srcdir/${pkgbase}2-$pkgver"
- python2 setup.py build
+ cd d2to1-$pkgver
+ python setup.py build
}
-package_python-d2to1() {
- depends=('python')
-
- cd ${pkgbase#*-}-$pkgver/
- python setup.py install --prefix=/usr --root="$pkgdir"
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+package() {
+ cd d2to1-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-package_python2-d2to1() {
- depends=('python2')
-
- cd ${pkgbase}2-$pkgver/
- python2 setup.py install --prefix=/usr --root="$pkgdir"
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
More information about the arch-commits
mailing list