PKGBUILDs/aur/python2-cheetah/PKGBUILD

37 lines
1.1 KiB
Bash
Raw Normal View History

2012-03-12 21:01:56 +00:00
# Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2012-01-14 03:38:37 +00:00
# Contributor: James Rayner <james@archlinux.org>
# Contributor: Todd Maynard <arch@toddmaynard.com>
2012-03-12 21:01:56 +00:00
# Source: https://github.com/nicoulaj/archlinux-packages
2012-01-14 03:38:37 +00:00
plugrel=1
pkgname=python2-cheetah
pkgver=2.4.4
2012-03-12 21:01:56 +00:00
pkgrel=4
2012-01-14 03:38:37 +00:00
pkgdesc="A Python-powered template engine and code generator"
2012-03-12 21:01:56 +00:00
arch=(i686 x86_64)
url="http://www.cheetahtemplate.org"
license=(custom)
depends=(python2 python-markdown)
makedepends=(python2-distribute)
2012-01-14 03:38:37 +00:00
optdepends=('python2-pygments: for the CodeHighlighter filter')
2012-03-12 21:01:56 +00:00
provides=(cheetah python-cheetah)
conflicts=(cheetah python-cheetah)
changelog=Changelog
2012-01-14 03:38:37 +00:00
source=(http://pypi.python.org/packages/source/C/Cheetah/Cheetah-${pkgver}.tar.gz)
md5sums=('853917116e731afbc8c8a43c37e6ddba')
build() {
cd "${srcdir}/Cheetah-${pkgver}"
python2 setup.py build
}
package() {
2012-03-12 21:01:56 +00:00
msg "Install..."
2012-01-14 03:38:37 +00:00
cd "${srcdir}/Cheetah-${pkgver}"
2012-03-12 21:01:56 +00:00
python2 setup.py install --root="${pkgdir}" || return 1
2012-01-14 03:38:37 +00:00
2012-03-12 21:01:56 +00:00
msg2 "Install copyright resources in /usr/share/licenses/${pkgname}..."
install -Dm644 "${srcdir}/Cheetah-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2012-01-14 03:38:37 +00:00
}