[arch-commits] Commit in (4 files)
Jiachen Yang
farseerfc at archlinux.org
Fri Jan 15 04:11:53 UTC 2016
Date: Friday, January 15, 2016 @ 05:11:53
Author: farseerfc
Revision: 156505
addpkg python2-smartypants depends by python2-typogrify
Added:
python2-smartypants/
python2-smartypants/repos/
python2-smartypants/trunk/
python2-smartypants/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Added: python2-smartypants/trunk/PKGBUILD
===================================================================
--- python2-smartypants/trunk/PKGBUILD (rev 0)
+++ python2-smartypants/trunk/PKGBUILD 2016-01-15 04:11:53 UTC (rev 156505)
@@ -0,0 +1,30 @@
+# Maintainer: Jiachen Yang <farseerfc at gmail.com>
+# Contributor: <clu>
+# Maintainer: Achilleas Pipinellis <axilleas archlinux info>
+
+pkgname=python2-smartypants
+_pkgname=smartypants
+pkgver=1.8.6
+pkgrel=3
+pkgdesc="A smart-quotes plugin"
+url="http://web.chad.org/projects/smartypants.py/"
+arch=('any')
+license=('BSD')
+depends=(python2)
+source=(http://pypi.python.org/packages/source/s/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
+md5sums=('97484a618fc35508ca2961445f4aa597')
+
+package()
+{
+ cd "${srcdir}/${_pkgname}-$pkgver"
+
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+
+ # 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