aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cheetah/APKBUILD
blob: 593a49ea917817f298e1d092e3180ed3e5f2c852 (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 Dainty <matt+alpine@bodgit-n-scarper.com>
# Maintainer:
pkgname=py-cheetah
_pkgname=Cheetah
pkgver=2.4.4
pkgrel=0
pkgdesc="Cheetah is a template engine and code generation tool"
url="http://www.cheetahtemplate.org/"
arch="all"
license="MIT"
depends="python"
makedepends="python2-dev"
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="853917116e731afbc8c8a43c37e6ddba  Cheetah-2.4.4.tar.gz"
sha256sums="be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550  Cheetah-2.4.4.tar.gz"
sha512sums="11b8cbf7d71789d6ae83596b133ddbe0bf1ccf2bca4c59562e7cd1d9bb75fa9d3208c0021d7d77edafdb03fd399cf1a26c003267fbffb94f27bf4457b0f9234c  Cheetah-2.4.4.tar.gz"