aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-chameleon/APKBUILD
blob: 7f585f6f6facd432d7064a3cc367ca27f4ea572a (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.16
pkgrel=0
pkgdesc="A Fast Python HTML/XML Template Compiler"
url="https://chameleon.readthedocs.org"
arch="noarch"
license="BSD"
depends="python py-lxml py-zope-interface"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.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="6336d780dde9f7a4b8a5a8971dd983a1  Chameleon-2.16.tar.gz"
sha256sums="87c82d657fbc1b47decbe605a6f6105d9190cb19e924b59262cfdfa03e7a512d  Chameleon-2.16.tar.gz"
sha512sums="a6f1491a11e55231ed5304b297d749dd590f1d0340732e00d20e4af1b311df297df2a72cc79f0e4949e5ac00acb9dec29dcb50423facb2b3bcff6ad3d1d75350  Chameleon-2.16.tar.gz"