[arch-commits] Commit in python-pygments/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Mar 9 04:39:38 UTC 2020


    Date: Monday, March 9, 2020 @ 04:39:38
  Author: foutrelis
Revision: 592741

archrelease: copy trunk to community-testing-any

Added:
  python-pygments/repos/community-testing-any/
  python-pygments/repos/community-testing-any/PKGBUILD
    (from rev 592740, python-pygments/trunk/PKGBUILD)
  python-pygments/repos/community-testing-any/python2-pygments.install
    (from rev 592740, python-pygments/trunk/python2-pygments.install)

--------------------------+
 PKGBUILD                 |   29 +++++++++++++++++++++++++++++
 python2-pygments.install |    7 +++++++
 2 files changed, 36 insertions(+)

Copied: python-pygments/repos/community-testing-any/PKGBUILD (from rev 592740, python-pygments/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-03-09 04:39:38 UTC (rev 592741)
@@ -0,0 +1,29 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Timm Preetz <timm at preetz.us>
+
+pkgname=python-pygments
+pkgver=2.6.1
+pkgrel=1
+pkgdesc="Python syntax highlighter"
+arch=('any')
+url="http://pygments.org/"
+license=('BSD')
+depends=('python-setuptools')
+provides=('pygmentize')
+conflicts=('pygmentize')
+replaces=('pygmentize')
+source=(https://pypi.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz)
+sha256sums=('647344a061c249a3b74e230c739f434d7ea4d8b1d5f3721bc0f3558049b38f44')
+
+package() {
+  depends=('python-setuptools')
+
+  cd "$srcdir/Pygments-$pkgver"
+
+  python3 setup.py install --root="$pkgdir" -O1
+  install -Dm644 external/pygments.bashcomp \
+    "$pkgdir/usr/share/bash-completion/completions/pygmentize"
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-pygments/repos/community-testing-any/python2-pygments.install (from rev 592740, python-pygments/trunk/python2-pygments.install)
===================================================================
--- community-testing-any/python2-pygments.install	                        (rev 0)
+++ community-testing-any/python2-pygments.install	2020-03-09 04:39:38 UTC (rev 592741)
@@ -0,0 +1,7 @@
+post_upgrade() {
+  if (($(vercmp $2 2.0.2-2) < 0)); then
+    echo ':: /usr/bin/pygmentize has been moved to the pygmentize package'
+  fi
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list