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

Maxime Gauduin alucryd at archlinux.org
Wed Aug 1 08:15:32 UTC 2018


    Date: Wednesday, August 1, 2018 @ 08:15:31
  Author: alucryd
Revision: 329910

upgpkg: scour 0.37-2

Modified:
  scour/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-01 08:13:09 UTC (rev 329909)
+++ PKGBUILD	2018-08-01 08:15:31 UTC (rev 329910)
@@ -1,28 +1,46 @@
 # $Id$
 # Maintainer: Maxime Gauduin <alucryd at archlinux.org>
 
-pkgname=scour
+pkgbase=scour
+pkgname=('scour' 'python2-scour')
 pkgver=0.37
-pkgrel=1
+pkgrel=2
 pkgdesc='An SVG scrubber'
 arch=('any')
 url='https://github.com/codedread/scour'
 license=('Apache')
-depends=('python-setuptools' 'python-six')
-makedepends=('git')
+makedepends=('git' 'python-setuptools' 'python-six' 'python2-setuptools' 'python2-six')
 source=("git+https://github.com/scour-project/scour.git#tag=v${pkgver}")
 sha256sums=('SKIP')
 
+prepare() {
+  cp -r {,python-}scour
+  mv {,python2-}scour
+}
+
 build() {
-  cd scour
-  
-  python setup.py build
+  for py in python{,2}; do
+    pushd ${py}-scour
+    ${py} setup.py build
+    popd
+  done
 }
 
-package() {
-  cd scour
+package_scour() {
+  depends=('python-setuptools' 'python-six')
 
+  cd python-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