blob: 0f1a752937e2fedfb2c8258b79f1c75e87559c46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# $Id$
# Maintainer: Luke Shumaker <lukeshu@lukeshu.com>
# Maintainer (Arch:python-markupsafe): Felix Yan <felixonmars@archlinux.org>
# Contributor (Arch:python-markupsafe): Ionut Biru <ibiru@archlinux.org>
# Contributor (Arch:python-markupsafe): Alex Anthony <alex.anthony28991@gmail.com>
# Rational for inclusion in [libre]:
# - Used by libre/parabolaweb-utils
pkgname=('python-markupsafe' 'python2-markupsafe')
pkgname=("${pkgname[@]/%/0}")
pkgver=0.23
pkgrel=4
pkgrel+=.1
pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
arch=('i686' 'x86_64')
arch+=('armv7h')
url="http://pypi.python.org/pypi/MarkupSafe"
license=('custom')
makedepends=('python-setuptools' 'python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz")
sha512sums=('4f1fd91ced5e7119584b56cf7b69cfe6fdd9613bd77412368a38e9ef5d1011ba5c76d1d3a0da3d60f9f474627e6c8c8b613a80a668b32d212f09072f8b1f5b28')
prepare() {
cp -a MarkupSafe-${pkgver} python2-MarkupSafe-${pkgver}
}
build() {
cd "${srcdir}/MarkupSafe-${pkgver}"
python setup.py build
cd "${srcdir}/python2-MarkupSafe-${pkgver}"
python2 setup.py build
}
check() {
cd "${srcdir}/MarkupSafe-${pkgver}"
python setup.py test
cd "${srcdir}/python2-MarkupSafe-${pkgver}"
python2 setup.py test
}
package_python-markupsafe0() {
depends=('python')
provides=("python-markupsafe=$pkgver")
conflicts=('python-markupsafe')
cd MarkupSafe-${pkgver}
python setup.py install --root="${pkgdir}" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-markupsafe0() {
depends=('python2')
provides=("python2-markupsafe=$pkgver")
conflicts=('python2-markupsafe')
cd python2-MarkupSafe-${pkgver}
python2 setup.py install --root="${pkgdir}" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|