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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 15:18:36 UTC 2021


    Date: Tuesday, November 30, 2021 @ 15:18:36
  Author: foutrelis
Revision: 1057796

archrelease: copy trunk to community-staging-any

Added:
  python-pygments/repos/community-staging-any/
  python-pygments/repos/community-staging-any/PKGBUILD
    (from rev 1057795, python-pygments/trunk/PKGBUILD)

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

Copied: python-pygments/repos/community-staging-any/PKGBUILD (from rev 1057795, python-pygments/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 15:18:36 UTC (rev 1057796)
@@ -0,0 +1,43 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Timm Preetz <timm at preetz.us>
+
+pkgname=python-pygments
+pkgver=2.10.0
+pkgrel=2
+pkgdesc="Python syntax highlighter"
+arch=('any')
+url="https://pygments.org/"
+license=('BSD')
+depends=('python-setuptools')
+makedepends=('python-sphinx')
+checkdepends=('python-pytest')
+provides=('pygmentize')
+conflicts=('pygmentize')
+replaces=('pygmentize')
+source=(https://pypi.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz)
+sha256sums=('f398865f7eb6874156579fdf36bc840a03cab64d1cde9e93d68f46a425ec52c6')
+
+build() {
+  cd "$srcdir/Pygments-$pkgver"
+  #make -C doc html
+}
+
+check() {
+  cd "$srcdir/Pygments-$pkgver"
+  PYTHONDONTWRITEBYTECODE=1 pytest
+}
+
+package() {
+  cd "$srcdir/Pygments-$pkgver"
+
+  python3 setup.py install --root="$pkgdir" -O1
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+
+  #mkdir -p "$pkgdir/usr/share/doc"
+  #cp -rT doc/_build/html "$pkgdir/usr/share/doc/$pkgname"
+  #install -Dm644 doc/pygmentize.1 -t "$pkgdir/usr/share/man/man1"
+  install -Dm644 external/pygments.bashcomp \
+    "$pkgdir/usr/share/bash-completion/completions/pygmentize"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list