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

Jelle van der Waa jelle at archlinux.org
Tue May 12 21:04:27 UTC 2020


    Date: Tuesday, May 12, 2020 @ 21:04:26
  Author: jelle
Revision: 383314

upgpkg: scour 0.37-5

Remove python2 module

Modified:
  scour/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++----------------------------
 1 file changed, 8 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-12 18:31:23 UTC (rev 383313)
+++ PKGBUILD	2020-05-12 21:04:26 UTC (rev 383314)
@@ -1,45 +1,25 @@
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 
-pkgbase=scour
-pkgname=('scour' 'python2-scour')
+pkgname=scour
 pkgver=0.37
-pkgrel=4
+pkgrel=5
 pkgdesc='An SVG scrubber'
 arch=('any')
 url='https://github.com/codedread/scour'
 license=('Apache')
-makedepends=('git' 'python-setuptools' 'python-six' 'python2-setuptools' 'python2-six')
+depends=('python-setuptools' 'python-six')
+makedepends=('git' 'python-setuptools' 'python-six')
 source=("git+https://github.com/scour-project/scour.git#tag=v${pkgver}")
 sha256sums=('SKIP')
 
-prepare() {
-  cp -r {,python-}scour
-  mv {,python2-}scour
-}
-
 build() {
-  for py in python{,2}; do
-    pushd ${py}-scour
-    ${py} setup.py build
-    popd
-  done
+  cd scour
+  python setup.py build
 }
 
-package_scour() {
-  depends=('python-setuptools' 'python-six')
-
-  cd python-scour
-
+package() {
+  cd scour
   python setup.py install --root="${pkgdir}" --optimize='1' --skip-build
 }
 
-package_python2-scour() {
-  depends=('python2-six')
-
-  cd python2-scour
-
-  python2 setup.py install --root="${pkgdir}" --optimize='1' --skip-build
-  rm -rf "${pkgdir}"/usr/bin
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list