diff options
author | root <root@rshg054.dnsready.net> | 2013-07-13 01:48:00 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-13 01:48:00 -0700 |
commit | c9952f3a144d9fb19917d7c100dca30d2d99f629 (patch) | |
tree | 94cc27a7d3077f0c571751f92f5cc6261d183dd8 /extra/python-markupsafe/PKGBUILD | |
parent | 0d51c533d75a26daabeb9e7b9c5dcfb211498a4d (diff) |
Sat Jul 13 01:47:15 PDT 2013
Diffstat (limited to 'extra/python-markupsafe/PKGBUILD')
-rw-r--r-- | extra/python-markupsafe/PKGBUILD | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/extra/python-markupsafe/PKGBUILD b/extra/python-markupsafe/PKGBUILD index 45c16b943..6686eaa4f 100644 --- a/extra/python-markupsafe/PKGBUILD +++ b/extra/python-markupsafe/PKGBUILD @@ -1,17 +1,17 @@ -# $Id: PKGBUILD 169021 2012-10-17 10:20:38Z allan $ +# $Id: PKGBUILD 189977 2013-07-12 06:16:17Z eric $ # Maintainer : Ionut Biru <ibiru@archlinux.org> # Contributor: Alex Anthony <alex.anthony28991@gmail.com> pkgname=('python-markupsafe' 'python2-markupsafe') -pkgver=0.15 -pkgrel=2 +pkgver=0.18 +pkgrel=1 pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python" arch=('i686' 'x86_64') url="http://pypi.python.org/pypi/MarkupSafe" license=('custom') makedepends=('python-distribute' 'python2-distribute') source=("http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz") -md5sums=('4e7c4d965fe5e033fa2d7bb7746bb186') +md5sums=('f8d252fd05371e51dec2fe9a36890687') build() { cp -r MarkupSafe-${pkgver} python2-MarkupSafe-${pkgver} @@ -22,10 +22,18 @@ build() { python2 setup.py build } +check() { + cd "${srcdir}/MarkupSafe-${pkgver}" + python setup.py test + + cd "${srcdir}/python2-MarkupSafe-${pkgver}" + python2 setup.py test +} + package_python-markupsafe() { depends=('python') - cd "${srcdir}/MarkupSafe-${pkgver}" + cd MarkupSafe-${pkgver} python setup.py install --root="${pkgdir}" --optimize=1 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-markupsafe/LICENSE" @@ -34,7 +42,7 @@ package_python-markupsafe() { package_python2-markupsafe() { depends=('python2') - cd "${srcdir}/python2-MarkupSafe-${pkgver}" + cd python2-MarkupSafe-${pkgver} python2 setup.py install --root="${pkgdir}" --optimize=1 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-markupsafe/LICENSE" |