Date: Thursday, August 27, 2015 @ 09:27:34 Author: fyan Revision: 244887
archrelease: copy trunk to extra-any Added: python-mako/repos/extra-any/PKGBUILD (from rev 244886, python-mako/trunk/PKGBUILD) Deleted: python-mako/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 111 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 56 insertions(+), 55 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2015-08-27 07:27:17 UTC (rev 244886) +++ PKGBUILD 2015-08-27 07:27:34 UTC (rev 244887) @@ -1,55 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=('python-mako' 'python2-mako') -pkgver=1.0.1 -pkgrel=1 -pkgdesc="Hyperfast and lightweight templating for the Python2 platform" -arch=('any') -url="http://www.makotemplates.org/" -license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe' 'python2-markupsafe' - 'python-beaker' 'python2-beaker') -checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock') -source=(https://pypi.python.org/packages/source/M/Mako/Mako-$pkgver.tar.gz{,.asc}) -sha1sums=('00ef43d5722c5407e5d64047ef4e3218006d741c' - 'SKIP') -validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') # Michael Bayer - -prepare() { - cp -a Mako-$pkgver python2-Mako-$pkgver -} - -build() { - cd Mako-$pkgver - python3 setup.py build - - cd ../python2-Mako-$pkgver - python2 setup.py build -} - -check() { - cd Mako-$pkgver - python3 setup.py test - - cd ../python2-Mako-$pkgver - python2 setup.py test -} - -package_python-mako() { - depends=('python-markupsafe' 'python-beaker') - - cd Mako-$pkgver - python3 setup.py install --root="$pkgdir" --optimize=1 - install -D LICENSE "$pkgdir/usr/share/licenses/python-mako/COPYING" -} - -package_python2-mako() { - depends=('python2-markupsafe' 'python2-beaker') - - cd python2-Mako-$pkgver - python2 setup.py install --root="$pkgdir" --optimize=1 - install -D LICENSE "$pkgdir/usr/share/licenses/python2-mako/COPYING" - - mv "$pkgdir/usr/bin/mako-render" "$pkgdir/usr/bin/mako-render2" -} Copied: python-mako/repos/extra-any/PKGBUILD (from rev 244886, python-mako/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2015-08-27 07:27:34 UTC (rev 244887) @@ -0,0 +1,56 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=('python-mako' 'python2-mako') +pkgver=1.0.2 +pkgrel=1 +pkgdesc="Hyperfast and lightweight templating for the Python2 platform" +arch=('any') +url="http://www.makotemplates.org/" +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe' 'python2-markupsafe' + 'python-beaker' 'python2-beaker') +checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' + 'python-babel' 'python2-babel' 'python-pygments' 'python2-pygments') +source=(https://pypi.python.org/packages/source/M/Mako/Mako-$pkgver.tar.gz{,.asc}) +sha1sums=('d53b9161985ca4bdd1aaec8d5f694856e961bdf1' + 'SKIP') +validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') # Michael Bayer + +prepare() { + cp -a Mako-$pkgver python2-Mako-$pkgver +} + +build() { + cd Mako-$pkgver + python3 setup.py build + + cd ../python2-Mako-$pkgver + python2 setup.py build +} + +check() { + cd Mako-$pkgver + python3 setup.py test + + cd ../python2-Mako-$pkgver + python2 setup.py test +} + +package_python-mako() { + depends=('python-markupsafe' 'python-beaker') + + cd Mako-$pkgver + python3 setup.py install --root="$pkgdir" --optimize=1 + install -D LICENSE "$pkgdir/usr/share/licenses/python-mako/COPYING" +} + +package_python2-mako() { + depends=('python2-markupsafe' 'python2-beaker') + + cd python2-Mako-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D LICENSE "$pkgdir/usr/share/licenses/python2-mako/COPYING" + + mv "$pkgdir/usr/bin/mako-render" "$pkgdir/usr/bin/mako-render2" +}