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

Maxime Gauduin alucryd at archlinux.org
Tue Jul 31 20:51:30 UTC 2018


    Date: Tuesday, July 31, 2018 @ 20:51:30
  Author: alucryd
Revision: 329879

upgpkg: scour 0.37-1

Modified:
  scour/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++------------------------------
 1 file changed, 12 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-31 20:25:45 UTC (rev 329878)
+++ PKGBUILD	2018-07-31 20:51:30 UTC (rev 329879)
@@ -1,46 +1,28 @@
 # $Id$
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 
-pkgbase=scour
-pkgname=('scour' 'python2-scour')
-pkgver=0.36
-pkgrel=2
+pkgname=scour
+pkgver=0.37
+pkgrel=1
 pkgdesc='An SVG scrubber'
 arch=('any')
 url='https://github.com/codedread/scour'
 license=('Apache')
-makedepends=('python-setuptools' 'python-six' 'python2-setuptools' 'python2-six')
-source=("scour-${pkgver}.tar.gz::https://github.com/codedread/scour/archive/v${pkgver}.tar.gz")
-sha256sums=('1b6820430c671c71406bf79afced676699d03bd3fcc65f01a651da5dcbcf3d3b')
+depends=('python-setuptools' 'python-six')
+makedepends=('git')
+source=("git+https://github.com/scour-project/scour.git#tag=v${pkgver}")
+sha256sums=('SKIP')
 
-prepare() {
-  cp -r {,python-}scour-${pkgver}
-  mv {,python2-}scour-${pkgver}
-}
-
 build() {
-  for py in python{,2}; do
-    pushd ${py}-scour-${pkgver}
-    ${py} setup.py build
-    popd
-  done
+  cd scour
+  
+  python setup.py build
 }
 
-package_scour() {
-  depends=('python-setuptools' 'python-six')
+package() {
+  cd scour
 
-  cd python-scour-${pkgver}
-
   python setup.py install --root="${pkgdir}" --optimize='1' --skip-build
 }
 
-package_python2-scour() {
-  depends=('python2-six')
-
-  cd python2-scour-${pkgver}
-
-  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