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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 12:31:27 UTC 2020


    Date: Monday, November 9, 2020 @ 12:31:27
  Author: felixonmars
Revision: 746876

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pygments/repos/community-staging-any/PKGBUILD (from rev 746875, python-pygments/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 12:31:27 UTC (rev 746876)
@@ -0,0 +1,44 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Timm Preetz <timm at preetz.us>
+
+pkgname=python-pygments
+pkgver=2.7.2
+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=('381985fcc551eb9d37c52088a32914e00517e57f4a21609f48141ba08e193fa0')
+
+build() {
+  cd "$srcdir/Pygments-$pkgver"
+  #make -C doc html  # Sphinx not usable yet, this early into the py39 rebuild
+}
+
+check() {
+  cd "$srcdir/Pygments-$pkgver"
+  PYTHONDONTWRITEBYTECODE=1 pytest
+}
+
+package() {
+  cd "$srcdir/Pygments-$pkgver"
+
+  export PYTHONHASHSEED=0
+  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