aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-tempita/APKBUILD
blob: 54864c330aece676a4141796e124431da9b5bbd7 (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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-tempita
_pkgname=Tempita
pkgver=0.5.2
pkgrel=1
pkgdesc="A small templating language"
url="http://pythonpaste.org/tempita/"
arch="noarch"
license="MIT"
depends=""
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages="py2-${pkgname/py-/}:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	mkdir -p "$pkgdir"
}

_py() {
	local python=$1
	pkgdesc="$pkgdesc - $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python" 	
	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

_py2() {
	_py python2
	replaces="$pkgname"
}

md5sums="4c2f17bb9d481821c41b6fbee904cea1  Tempita-0.5.2.tar.gz"
sha256sums="cacecf0baa674d356641f1d406b8bff1d756d739c46b869a54de515d08e6fc9c  Tempita-0.5.2.tar.gz"
sha512sums="582d3ca35dfb2ad44491cf9e526db9f9c34c419f2b03a5ce86a7e5183f7760b380262367c062161d577c3fb3e69e39ee99bbf8e493873e1da1a350ef2f63630d  Tempita-0.5.2.tar.gz"