[arch-commits] Commit in scour/repos/testing-any (PKGBUILD PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Wed Aug 1 08:17:33 UTC 2018


    Date: Wednesday, August 1, 2018 @ 08:17:33
  Author: alucryd
Revision: 329913

archrelease: copy trunk to testing-any

Added:
  scour/repos/testing-any/PKGBUILD
    (from rev 329912, scour/trunk/PKGBUILD)
Deleted:
  scour/repos/testing-any/PKGBUILD

----------+
 PKGBUILD |   74 +++++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 46 insertions(+), 28 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-01 08:17:26 UTC (rev 329912)
+++ PKGBUILD	2018-08-01 08:17:33 UTC (rev 329913)
@@ -1,28 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-
-pkgname=scour
-pkgver=0.37
-pkgrel=1
-pkgdesc='An SVG scrubber'
-arch=('any')
-url='https://github.com/codedread/scour'
-license=('Apache')
-depends=('python-setuptools' 'python-six')
-makedepends=('git')
-source=("git+https://github.com/scour-project/scour.git#tag=v${pkgver}")
-sha256sums=('SKIP')
-
-build() {
-  cd scour
-  
-  python setup.py build
-}
-
-package() {
-  cd scour
-
-  python setup.py install --root="${pkgdir}" --optimize='1' --skip-build
-}
-
-# vim: ts=2 sw=2 et:

Copied: scour/repos/testing-any/PKGBUILD (from rev 329912, scour/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-08-01 08:17:33 UTC (rev 329913)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgbase=scour
+pkgname=('scour' 'python2-scour')
+pkgver=0.37
+pkgrel=3
+pkgdesc='An SVG scrubber'
+arch=('any')
+url='https://github.com/codedread/scour'
+license=('Apache')
+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() {
+  for py in python{,2}; do
+    pushd ${py}-scour
+    ${py} setup.py build
+    popd
+  done
+}
+
+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