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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 09:51:29 UTC 2019


    Date: Monday, November 4, 2019 @ 09:51:28
  Author: felixonmars
Revision: 366731

archrelease: copy trunk to staging-any

Added:
  scour/repos/staging-any/
  scour/repos/staging-any/PKGBUILD
    (from rev 366730, scour/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: scour/repos/staging-any/PKGBUILD (from rev 366730, scour/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2019-11-04 09:51:28 UTC (rev 366731)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgbase=scour
+pkgname=('scour' 'python2-scour')
+pkgver=0.37
+pkgrel=4
+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