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

Maxime Gauduin alucryd at archlinux.org
Sat Feb 4 18:34:36 UTC 2017


    Date: Saturday, February 4, 2017 @ 18:34:35
  Author: alucryd
Revision: 288036

archrelease: copy trunk to extra-any

Added:
  scour/repos/extra-any/PKGBUILD
    (from rev 288035, scour/trunk/PKGBUILD)
Deleted:
  scour/repos/extra-any/PKGBUILD

----------+
 PKGBUILD |   73 ++++++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 46 insertions(+), 27 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-04 18:34:10 UTC (rev 288035)
+++ PKGBUILD	2017-02-04 18:34:35 UTC (rev 288036)
@@ -1,27 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-
-pkgname=scour
-pkgver=0.35
-pkgrel=1
-pkgdesc='An SVG scrubber'
-arch=('any')
-url='https://github.com/codedread/scour'
-license=('Apache')
-depends=('python-setuptools' 'python-six')
-source=("scour-${pkgver}.tar.gz::https://github.com/codedread/scour/archive/v${pkgver}.tar.gz")
-sha256sums=('91a7dd0d721a3567b802c1b353ef451621594e628fe723cedb65cd4629fbc96f')
-
-build() {
-  cd scour-${pkgver}
-
-  python setup.py build
-}
-
-package() {
-  cd scour-${pkgver}
-
-  python setup.py install --root="${pkgdir}" --optimize='1'
-}
-
-# vim: ts=2 sw=2 et:

Copied: scour/repos/extra-any/PKGBUILD (from rev 288035, scour/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-02-04 18:34:35 UTC (rev 288036)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgbase=scour
+pkgname=('scour' 'python2-scour')
+pkgver=0.35
+pkgrel=2
+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=('91a7dd0d721a3567b802c1b353ef451621594e628fe723cedb65cd4629fbc96f')
+
+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
+}
+
+package_scour() {
+  depends=('python-setuptools' 'python-six')
+
+  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