aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templayer/APKBUILD
blob: b113a7db005dc988923745ee234cf6b461196416 (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
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=templayer
pkgver=1.5.1
pkgrel=0
pkgdesc="Templayer is a layered template library for Python and Django"
url="http://excess.org/templayer/"
arch="x86 x86_64"
license="LGPL"
depends="python"
makedepends="python-dev"
install=
subpackages="$pkgname-doc"
source="http://excess.org/$pkgname/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	return 0
}

package() {
	cd "$_builddir"
	python setup.py install --root "$pkgdir"
}

doc() {
	mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
	cd "$_builddir"
	install -Dm644 docs/reference.html "$subpkgdir"/usr/share/doc/$pkgname/reference.html
	install -Dm644 docs/tutorial.html "$subpkgdir"/usr/share/doc/$pkgname/tutorial.html
	install -Dm644 docs/tutorial_examples.tar.gz "$subpkgdir"/usr/share/doc/$pkgname/tutorial_examples.tar.gz
}

md5sums="9d1a3aa0cece34a2492792278aad406d  templayer-1.5.1.tar.gz"