summaryrefslogtreecommitdiffstats
path: root/testing/py-chameleon/APKBUILD
blob: a4b657053fd0ceb34c34392eb5378a9f3e0371c1 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-chameleon
_pkgname=Chameleon
pkgver=2.12
pkgrel=0
pkgdesc="A Fast Python HTML/XML Template Compiler"
url="http://chameleon.repoze.org/"
arch="noarch"
license="BSD"
depends="python py-lxml py-zope-interface"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="c2947c7b615bf758fa4a710e759c658b  Chameleon-2.12.tar.gz"
sha256sums="8bb5c412b55cafc4e4ecc85ccdafb1858fdd2f2b9425a5eead8ce19d5183fa2a  Chameleon-2.12.tar.gz"
sha512sums="ee28fe2617d42e9e5b31d89ff6002d1d274bec5de61395abe3cd3c5e64c8297d67a56efeb75d21b3b506fe5f44c45a7584b22ee149ede70a1c9d2d2df8f8a14c  Chameleon-2.12.tar.gz"