summaryrefslogtreecommitdiff
path: root/extra/python-markupsafe
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-23 23:14:44 +0000
committerroot <root@rshg054.dnsready.net>2011-12-23 23:14:44 +0000
commitd53a615fd6ab6dfeb42da11086f96698cb08fe40 (patch)
treee8b4ecb6de34cedcb486150a721025bf303f66da /extra/python-markupsafe
parent34e6c976d28892a7bd3f7578f10fcfa57865472f (diff)
Fri Dec 23 23:14:44 UTC 2011
Diffstat (limited to 'extra/python-markupsafe')
-rw-r--r--extra/python-markupsafe/PKGBUILD37
1 files changed, 28 insertions, 9 deletions
diff --git a/extra/python-markupsafe/PKGBUILD b/extra/python-markupsafe/PKGBUILD
index 4fba8e363..68dbabc7e 100644
--- a/extra/python-markupsafe/PKGBUILD
+++ b/extra/python-markupsafe/PKGBUILD
@@ -1,22 +1,41 @@
-# $Id: PKGBUILD 113450 2011-03-08 17:36:15Z ibiru $
+# $Id: PKGBUILD 145461 2011-12-22 18:14:12Z ibiru $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Alex Anthony <alex.anthony28991@gmail.com>
-pkgname=python-markupsafe
-pkgver=0.12
-pkgrel=0
+pkgname=('python-markupsafe' 'python2-markupsafe')
+pkgver=0.15
+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')
-depends=('python2')
-makedepends=('setuptools')
-source=(http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz)
-md5sums=('edd4b6950f6d4ddc6e23fa322f8f0f53')
+makedepends=('python-distribute' 'python2-distribute')
+source=("http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz")
+md5sums=('4e7c4d965fe5e033fa2d7bb7746bb186')
build() {
+ cp -r MarkupSafe-${pkgver} python2-MarkupSafe-${pkgver}
cd ${srcdir}/MarkupSafe-${pkgver}
+ python setup.py build
+
+ cd ${srcdir}/python2-MarkupSafe-${pkgver}
+ python2 setup.py build
+}
+
+package_python-markupsafe() {
+ depends=('python')
+
+ cd ${srcdir}/MarkupSafe-${pkgver}
+ python setup.py install --root=${pkgdir} --optimize=1
+
+ install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/python-markupsafe/LICENSE
+}
+
+package_python2-markupsafe() {
+ depends=('python2')
+
+ cd ${srcdir}/python2-MarkupSafe-${pkgver}
python2 setup.py install --root=${pkgdir} --optimize=1
- install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/python2-markupsafe/LICENSE
}