mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-06 01:02:26 +01:00
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
# Contributor: Matt Smith <mcs@darkregion.net>
|
|
# Maintainer: Matt Smith <mcs@darkregion.net>
|
|
pkgname=py-templayer
|
|
_pkgname=templayer
|
|
pkgver=1.5.1
|
|
pkgrel=3
|
|
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"
|