[arch-commits] Commit in python-smartypants/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Wed Jan 1 16:29:54 UTC 2020
Date: Wednesday, January 1, 2020 @ 16:29:53
Author: jelle
Revision: 545849
upgpkg: python-smartypants 2.0.1-5
Remove python2 module
Modified:
python-smartypants/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++----------------------
1 file changed, 5 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-01 16:24:51 UTC (rev 545848)
+++ PKGBUILD 2020-01-01 16:29:53 UTC (rev 545849)
@@ -2,39 +2,22 @@
# AUR Maintainer: Aetf <aetf at unlimitedcodeworks dot xyz>
# Contributor: carstene1ns <arch carsten-teibes de>
-pkgbase=python-smartypants
-pkgname=(python-smartypants python2-smartypants)
+pkgname=python-smartypants
_pkgname=smartypants
pkgver=2.0.1
-pkgrel=4
+pkgrel=5
pkgdesc="Python with the SmartyPants"
url="https://bitbucket.org/livibetter/smartypants.py"
license=('BSD')
arch=('any')
-makedepends=('python' 'python2')
+depends=('python')
+makedepends=('python')
sha512sums=('d47a866a5478c3520251f87a93a468a5eea10318b24b2e8d4bc918d533b5a5789aa56d3a8d5fb8ccff9572fb63e5b6f2eafc44f93fb57a19e6621ebef5d64d9d')
source=(
"https://github.com/leohemsted/${_pkgname}.py/archive/v${pkgver}.tar.gz")
-package_python-smartypants() {
- depends=('python')
-
+package() {
cd "$srcdir/${_pkgname}.py-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
-
-package_python2-smartypants() {
- depends=('python2')
-
- cd "$srcdir/${_pkgname}.py-$pkgver"
- install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
-
- # python2 fix
- sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' setup.py
- sed -i 's|#!/usr/bin/python|#!/usr/bin/env python2|' smartypants{.py,}
- python2 setup.py install --root="${pkgdir}" -O1
-
- # Prevent conflict with python-smartypants
- mv "${pkgdir}/usr/bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}2"
-}
More information about the arch-commits
mailing list