~alpine/devel

testing/py-templayer: added py- prefix to package and improved the APKBUILD v1 PROPOSED

Matt Smith: 1
 testing/py-templayer: added py- prefix to package and improved the APKBUILD

 1 files changed, 43 insertions(+), 0 deletions(-)
On Thursday, December 16, 2010 5:03am, "Natanael Copa" <ncopa@alpinelinux.org> said:
Next
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/devel/patches/196/mbox | git am -3
Learn more about email & git

[alpine-devel] [PATCH] testing/py-templayer: added py- prefix to package and improved the APKBUILD Export this patch

---
 testing/py-templayer/APKBUILD |   43 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)
 create mode 100644 testing/py-templayer/APKBUILD

diff --git a/testing/py-templayer/APKBUILD b/testing/py-templayer/APKBUILD
new file mode 100644
index 0000000..279ffc1
--- /dev/null
+++ b/testing/py-templayer/APKBUILD
@@ -0,0 +1,43 @@
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-templayer
_pkgname=templayer
pkgver=1.5.1
pkgrel=1
pkgdesc="Templayer is a layered template library for Python and Django"
url="http://excess.org/templayer/"
arch="x86 x86_64"
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"
}

doc() {
	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"
-- 
1.7.3.3



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
On Tuesday, December 14, 2010 11:46pm, "Matt Smith" <mcs@darkregion.net> said:
...