mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
aur/python2-cheetah to 2.4.4-4
This commit is contained in:
parent
6ac1666ad3
commit
16f2303c6f
1 changed files with 15 additions and 13 deletions
|
@ -1,21 +1,23 @@
|
|||
# $Id: PKGBUILD 60201 2011-12-07 14:41:34Z arodseth $
|
||||
# Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
|
||||
# Contributor: James Rayner <james@archlinux.org>
|
||||
# Contributor: Todd Maynard <arch@toddmaynard.com>
|
||||
# Source: https://github.com/nicoulaj/archlinux-packages
|
||||
|
||||
plugrel=1
|
||||
|
||||
pkgname=python2-cheetah
|
||||
pkgver=2.4.4
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="A Python-powered template engine and code generator"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.cheetahtemplate.org/"
|
||||
license=('custom')
|
||||
depends=('python2' 'python-markdown')
|
||||
makedepends=('python2-distribute')
|
||||
arch=(i686 x86_64)
|
||||
url="http://www.cheetahtemplate.org"
|
||||
license=(custom)
|
||||
depends=(python2 python-markdown)
|
||||
makedepends=(python2-distribute)
|
||||
optdepends=('python2-pygments: for the CodeHighlighter filter')
|
||||
provides=('cheetah' 'python-cheetah')
|
||||
conflicts=('cheetah' 'python-cheetah')
|
||||
provides=(cheetah python-cheetah)
|
||||
conflicts=(cheetah python-cheetah)
|
||||
changelog=Changelog
|
||||
source=(http://pypi.python.org/packages/source/C/Cheetah/Cheetah-${pkgver}.tar.gz)
|
||||
md5sums=('853917116e731afbc8c8a43c37e6ddba')
|
||||
|
||||
|
@ -25,10 +27,10 @@ build() {
|
|||
}
|
||||
|
||||
package() {
|
||||
msg "Install..."
|
||||
cd "${srcdir}/Cheetah-${pkgver}"
|
||||
python2 setup.py install --root="${pkgdir}"
|
||||
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
python2 setup.py install --root="${pkgdir}" || return 1
|
||||
|
||||
find $pkgdir/usr/lib/python2.7/site-packages/Cheetah/ -name '*.py' | \
|
||||
xargs sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|"
|
||||
msg2 "Install copyright resources in /usr/share/licenses/${pkgname}..."
|
||||
install -Dm644 "${srcdir}/Cheetah-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue