blob: b66282564c92ba886546cbb78df12c2d290d1bb7 (
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
|
# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-mako
pkgname=('python-mako' 'python2-mako')
pkgver=1.0.7
pkgrel=1
pkgdesc="A super-fast templating language that borrows the best ideas from the existing templating languages"
arch=('any')
url="http://www.makotemplates.org/"
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe' 'python2-markupsafe'
'python-beaker' 'python2-beaker')
checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
'python-babel' 'python2-babel' 'python-pygments' 'python2-pygments'
'python-dogpile.cache' 'python2-dogpile.cache')
source=("https://pypi.io/packages/source/M/Mako/Mako-$pkgver.tar.gz"{,.asc})
sha512sums=('d67af6788bf8603010361ce8b6d0355b0191657c07f3b5845f9d5e91653c3e349a7b35d5b36aa9c7f291973c83911ce94075e1cad78e6935d0ed4ee9c6e2a571'
'SKIP')
validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') # Michael Bayer
prepare() {
cp -a Mako-$pkgver{,-py2}
}
build() {
cd "$srcdir"/Mako-$pkgver
python setup.py build
cd "$srcdir"/Mako-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/Mako-$pkgver
python setup.py ptr
cd "$srcdir"/Mako-$pkgver-py2
python2 setup.py ptr
}
package_python-mako() {
depends=('python-markupsafe' 'python-beaker' 'python-setuptools')
cd Mako-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
package_python2-mako() {
depends=('python2-markupsafe' 'python2-beaker' 'python2-setuptools')
cd Mako-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING
mv "$pkgdir"/usr/bin/mako-render{,2}
}
|