[arch-commits] Commit in python-mako/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun May 10 09:59:11 UTC 2020


    Date: Sunday, May 10, 2020 @ 09:59:11
  Author: felixonmars
Revision: 383089

upgpkg: python-mako 1.1.2-3: remove python2 sibling

Modified:
  python-mako/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++--------------------------
 1 file changed, 5 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-10 09:53:04 UTC (rev 383088)
+++ PKGBUILD	2020-05-10 09:59:11 UTC (rev 383089)
@@ -1,15 +1,13 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-mako
-pkgname=('python-mako' 'python2-mako')
+pkgname=python-mako
 pkgver=1.1.2
-pkgrel=2
+pkgrel=3
 pkgdesc="A super-fast templating language that borrows the best ideas from the existing templating languages"
 arch=('any')
 url="https://www.makotemplates.org/"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-markupsafe' 'python2-markupsafe'
-             'python-beaker' 'python2-beaker')
+depends=('python-markupsafe' 'python-beaker' 'python-setuptools')
 checkdepends=('python-pytest' 'python-mock' 'python-babel' 'python-pygments'
               'python-dogpile.cache')
 source=("https://pypi.io/packages/source/M/Mako/Mako-$pkgver.tar.gz"{,.asc})
@@ -17,16 +15,9 @@
             'SKIP')
 validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1')  # Michael Bayer
 
-prepare() {
-  cp -a Mako-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/Mako-$pkgver
+  cd Mako-$pkgver
   python setup.py build
-
-  cd "$srcdir"/Mako-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -34,20 +25,8 @@
   python -m pytest
 }
 
-package_python-mako() {
-  depends=('python-markupsafe' 'python-beaker' 'python-setuptools')
-
+package() {
   cd Mako-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-mako() {
-  depends=('python2-markupsafe' 'python2-beaker' 'python2-setuptools')
-
-  cd Mako-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
-  mv "$pkgdir"/usr/bin/mako-render{,2}
-}


More information about the arch-commits mailing list