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

Jelle van der Waa jelle at archlinux.org
Sat Feb 1 16:13:00 UTC 2020


    Date: Saturday, February 1, 2020 @ 16:12:59
  Author: jelle
Revision: 561045

remove python2 module

Modified:
  python-pyjsparser/trunk/PKGBUILD

----------+
 PKGBUILD |   19 +++----------------
 1 file changed, 3 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-01 15:40:42 UTC (rev 561044)
+++ PKGBUILD	2020-02-01 16:12:59 UTC (rev 561045)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pyjsparser
-pkgname=(python-pyjsparser python2-pyjsparser)
+pkgname=python-pyjsparser
 pkgver=2.7.1
 _commit=61f38fd4b62125970424e4dcacee80f1df14857b
 pkgrel=3
@@ -9,7 +8,8 @@
 url="https://github.com/PiotrDabkowski/pyjsparser"
 license=('MIT')
 arch=('any')
-makedepends=('python' 'python2')
+depends=('python')
+makedepends=('python')
 source=("$pkgname-$_commit.tar.gz::https://github.com/PiotrDabkowski/pyjsparser/archive/$_commit.tar.gz")
 sha512sums=('a91d11e1badd085c1efe72174b304354e8fd5ae922a8b451f36f9099522e1c95454d1ac580eed2a19d7ac48fce22011ed11ef1d9676f9b118c76285a5190c9e4')
 
@@ -20,29 +20,16 @@
 build() {
   cd pyjsparser-$pkgver
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd pyjsparser-$pkgver
   python test.py
-  python2 test.py
 }
 
 package_python-pyjsparser() {
-  depends=('python')
-
   cd pyjsparser-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-pyjsparser() {
-  depends=('python2')
-
-  cd pyjsparser-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list