[arch-commits] Commit in python-typogrify/trunk (PKGBUILD)
Jiachen Yang
farseerfc at archlinux.org
Mon Feb 18 17:51:11 UTC 2019
Date: Monday, February 18, 2019 @ 17:51:10
Author: farseerfc
Revision: 434274
upgpkg: python-typogrify 2.0.7-6
python-typogrify dropping python2-typogrify
Modified:
python-typogrify/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++------------------------
1 file changed, 6 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-02-18 17:42:48 UTC (rev 434273)
+++ PKGBUILD 2019-02-18 17:51:10 UTC (rev 434274)
@@ -1,40 +1,22 @@
# Maintainer: Jiachen Yang <farseerfc at gmail.com>
# AUR Maintainer: Chris Warrick <aur at chriswarrick.com>
-pkgbase=python-typogrify
-pkgname=('python-typogrify' 'python2-typogrify')
+pkgname=python-typogrify
_pyname=typogrify
pkgver=2.0.7
-pkgrel=5
-pkgdesc='Filters to enhance web typography'
+pkgrel=6
+pkgdesc='filters to make caring about typography on the web a bit easier'
arch=('any')
url='https://github.com/mintchaos/typogrify'
license=('BSD')
-makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools'
- 'python-smartypants' 'python2-smartypants')
+depends=('python' 'python-smartypants')
+makedepends=('python-setuptools')
source=("https://pypi.python.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('63f38f80531996f187d2894cc497ba08')
-prepare() {
+package() {
cd "${srcdir}/${_pyname}-${pkgver}"
- cp -r "${srcdir}/${_pyname}-${pkgver}" "${srcdir}/${_pyname}-${pkgver}-py2"
-}
-
-package_python-typogrify() {
- depends=('python' 'python-smartypants')
- cd "${srcdir}/${_pyname}-${pkgver}"
python3 setup.py install --root="${pkgdir}/" --optimize=1
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE"
}
-
-package_python2-typogrify() {
- depends=('python2' 'python2-smartypants')
- cd "${srcdir}/${_pyname}-${pkgver}-py2"
- # fixing python2 shebang
- sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' typogrify/packages/titlecase/__init__.py
- sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' typogrify/packages/titlecase/tests.py
- python2 setup.py install --root="${pkgdir}/" --optimize=1
- install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python2-typogrify/LICENSE"
-}
-
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list