updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / python2-smartypants / PKGBUILD
blobfaa9c2771b65673b17a28361e0239937f9d57cbe
1 # Contributor:  <clu>
2 # Maintainer:  Axilleas P <markelos archlinux gr>
3      
4 pkgname=python2-smartypants
5 _pkgname=smartypants
6 pkgver=1.6.0.3
7 pkgrel=4
8 pkgdesc="A smart-quotes plugin"
9 url="http://web.chad.org/projects/smartypants.py/"
10 arch=('any')
11 license=('BSD')
12 depends=(python2)
13 source=(http://pypi.python.org/packages/source/s/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
14 md5sums=('2cd188eefedc6a59c4917cf2900d1c46')
15      
16 build() 
18         cd "${srcdir}/${_pkgname}-$pkgver"
19   
20         #copy license
21         mkdir -p "${pkgdir}"/usr/share/licenses/$_pkgname
22         install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$_pkgname/LICENSE"
23         
24         #python2 fix
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