blob: 3dbc29049f472a14450569aafc7483ce3e41578f (
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
|
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-templayer
_pkgname=templayer
pkgver=1.5.1
pkgrel=3
pkgdesc="Templayer is a layered template library for Python and Django"
url="http://excess.org/templayer/"
arch="noarch"
license="LGPL"
depends="python2"
makedepends="python2-dev py-setuptools"
install=
subpackages="$pkgname-doc"
source="http://excess.org/$_pkgname/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
cd "$_builddir"
# apply patches here
}
build() {
cd "$_builddir"
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python2 setup.py install --root "$pkgdir" || return 1
}
doc() {
cd "$_builddir"
mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1
for _doc in reference.html tutorial.html tutorial_examples.tar.gz; do
install -Dm644 ./docs/$_doc \
"$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
done
}
sha512sums="a5d88c5268888afe959c517d0d1c5cba4544cf859c517929c49796d41d1890ad7c2c238c2b71a218588b7f3e19e0e97f49fe3513a24eebc5e66de5689b5e4949 templayer-1.5.1.tar.gz"
|