diff options
Diffstat (limited to 'testing/py-templayer')
-rw-r--r-- | testing/py-templayer/APKBUILD | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/testing/py-templayer/APKBUILD b/testing/py-templayer/APKBUILD index 776fdfbc2b..eeefd4bb53 100644 --- a/testing/py-templayer/APKBUILD +++ b/testing/py-templayer/APKBUILD @@ -1,41 +1,43 @@ # Contributor: Matt Smith <mcs@darkregion.net> # Maintainer: Matt Smith <mcs@darkregion.net> pkgname=py-templayer -_name=templayer +_pkgname=templayer pkgver=1.5.1 -pkgrel=0 +pkgrel=1 pkgdesc="Templayer is a layered template library for Python and Django" url="http://excess.org/templayer/" -arch="x86 x86_64" +arch="noarch" license="LGPL" depends="python" -makedepends="python-dev" +makedepends="python-dev py-setuptools" install= subpackages="$pkgname-doc" -source="http://excess.org/$pkgname/$_name-$pkgver.tar.gz" +source="http://excess.org/$_pkgname/$_pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/$_name-$pkgver +_builddir="$srcdir"/$_pkgname-$pkgver prepare() { - cd "$_builddir" - # apply patches here + cd "$_builddir" + # apply patches here } build() { - return 0 + cd "$_builddir" + python setup.py build || return 1 } package() { - cd "$_builddir" - python setup.py install --root "$pkgdir" + 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 + cd "$_builddir" + + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname + for doc in reference.html tutorial.html tutorial_examples.tar.gz; do + install -Dm644 ./docs/$doc "$subpkgdir"/usr/share/doc/$pkgname/$doc + done } md5sums="9d1a3aa0cece34a2492792278aad406d templayer-1.5.1.tar.gz" |