2 # Maintainer: Axilleas P <markelos archlinux gr>
4 pkgname=python2-smartypants
8 pkgdesc="A smart-quotes plugin"
9 url="http://web.chad.org/projects/smartypants.py/"
13 source=(http://pypi.python.org/packages/source/s/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
14 md5sums=('2cd188eefedc6a59c4917cf2900d1c46')
18 cd "${srcdir}/${_pkgname}-$pkgver"
21 mkdir -p "${pkgdir}"/usr/share/licenses/$_pkgname
22 install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$_pkgname/LICENSE"
25 sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' setup.py
26 sed -i 's|#!/usr/bin/python|#!/usr/bin/env python2|' lib/smartypants.py
27 python2 setup.py install --root="${pkgdir}" -O1