summaryrefslogtreecommitdiff
path: root/extra/python-markupsafe/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/python-markupsafe/PKGBUILD')
-rw-r--r--extra/python-markupsafe/PKGBUILD20
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"