diff options
author | Matt Smith <mcs@darkregion.net> | 2011-03-23 16:49:39 -0500 |
---|---|---|
committer | Matt Smith <mcs@darkregion.net> | 2011-03-23 16:49:39 -0500 |
commit | 001a7d797f3d0ce0bf59665d8447dc9def645d94 (patch) | |
tree | 7a5f8c7831ded476331065c74053c5fede9d7ece /main/py-templayer/APKBUILD | |
parent | 1e8d4670f3e1ca26a885e14211d5291cfbec40d3 (diff) | |
download | aports-001a7d797f3d0ce0bf59665d8447dc9def645d94.tar.bz2 aports-001a7d797f3d0ce0bf59665d8447dc9def645d94.tar.xz |
main/py-templayer: moved from testing
Diffstat (limited to 'main/py-templayer/APKBUILD')
-rw-r--r-- | main/py-templayer/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/main/py-templayer/APKBUILD b/main/py-templayer/APKBUILD new file mode 100644 index 0000000000..e12d05c47e --- /dev/null +++ b/main/py-templayer/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Matt Smith <mcs@darkregion.net> +# Maintainer: Matt Smith <mcs@darkregion.net> +pkgname=py-templayer +_pkgname=templayer +pkgver=1.5.1 +pkgrel=2 +pkgdesc="Templayer is a layered template library for Python and Django" +url="http://excess.org/templayer/" +arch="noarch" +license="LGPL" +depends="python" +makedepends="python-dev py-setuptools" +install= +subpackages="$pkgname-doc" +source="http://excess.org/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver + +prepare() { + cd "$_builddir" + # apply patches here +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --root "$pkgdir" || return 1 +} + +doc() { + cd "$_builddir" + + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1 + for _doc in reference.html tutorial.html tutorial_examples.tar.gz; do + install -Dm644 ./docs/$_doc \ + "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1 + done +} + +md5sums="9d1a3aa0cece34a2492792278aad406d templayer-1.5.1.tar.gz" |