[arch-commits] Commit in python-mako/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Wed Oct 28 01:55:47 UTC 2015
Date: Wednesday, October 28, 2015 @ 02:55:47
Author: fyan
Revision: 249825
upgpkg: python-mako 1.0.3-1
Modified:
python-mako/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-10-28 01:53:22 UTC (rev 249824)
+++ PKGBUILD 2015-10-28 01:55:47 UTC (rev 249825)
@@ -2,8 +2,8 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=('python-mako' 'python2-mako')
-pkgver=1.0.2
-pkgrel=3
+pkgver=1.0.3
+pkgrel=1
pkgdesc="Hyperfast and lightweight templating for the Python2 platform"
arch=('any')
url="http://www.makotemplates.org/"
@@ -14,27 +14,27 @@
'python-babel' 'python2-babel' 'python-pygments' 'python2-pygments'
'python-dogpile.cache' 'python2-dogpile.cache')
source=(https://pypi.python.org/packages/source/M/Mako/Mako-$pkgver.tar.gz{,.asc})
-sha1sums=('d53b9161985ca4bdd1aaec8d5f694856e961bdf1'
+sha1sums=('d68636bc4b2d4c4030c936d88c4e05a8080b4463'
'SKIP')
validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') # Michael Bayer
prepare() {
- cp -a Mako-$pkgver python2-Mako-$pkgver
+ cp -a Mako-$pkgver{,-py2}
}
build() {
- cd Mako-$pkgver
- python3 setup.py build
+ cd "$srcdir/Mako-$pkgver"
+ python setup.py build
- cd ../python2-Mako-$pkgver
+ cd "$srcdir/Mako-$pkgver-py2"
python2 setup.py build
}
check() {
- cd Mako-$pkgver
- python3 setup.py test
+ cd "$srcdir/Mako-$pkgver"
+ python setup.py test
- cd ../python2-Mako-$pkgver
+ cd "$srcdir/Mako-$pkgver-py2"
python2 setup.py test
}
@@ -42,16 +42,16 @@
depends=('python-markupsafe' 'python-beaker' 'python-setuptools')
cd Mako-$pkgver
- python3 setup.py install --root="$pkgdir" --optimize=1
- install -D LICENSE "$pkgdir/usr/share/licenses/python-mako/COPYING"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
package_python2-mako() {
depends=('python2-markupsafe' 'python2-beaker' 'python2-setuptools')
- cd python2-Mako-$pkgver
+ cd Mako-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
- install -D LICENSE "$pkgdir/usr/share/licenses/python2-mako/COPYING"
+ install -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/COPYING"
- mv "$pkgdir/usr/bin/mako-render" "$pkgdir/usr/bin/mako-render2"
+ mv "$pkgdir/usr/bin/mako-render"{,2}
}
More information about the arch-commits
mailing list