[arch-commits] Commit in (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Mar 9 04:54:33 UTC 2020
Date: Monday, March 9, 2020 @ 04:54:33
Author: foutrelis
Revision: 592745
Add python2-pygments (2.5.x) as a separate package
Added:
python2-pygments/
python2-pygments/repos/
python2-pygments/trunk/
python2-pygments/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Added: python2-pygments/trunk/PKGBUILD
===================================================================
--- python2-pygments/trunk/PKGBUILD (rev 0)
+++ python2-pygments/trunk/PKGBUILD 2020-03-09 04:54:33 UTC (rev 592745)
@@ -0,0 +1,26 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Timm Preetz <timm at preetz.us>
+
+pkgname=python2-pygments
+pkgver=2.5.2
+pkgrel=2
+pkgdesc="Python syntax highlighter"
+arch=('any')
+url="https://pygments.org/"
+license=('BSD')
+depends=('python2-setuptools')
+source=(https://pypi.org/packages/source/P/Pygments/Pygments-$pkgver.tar.gz)
+sha256sums=('98c8aa5a9f778fcd1026a17361ddaf7330d1b7c62ae97c3bb0ae73e0b9b6b0fe')
+
+package() {
+ cd "$srcdir/Pygments-$pkgver"
+
+ python2 setup.py install --root="$pkgdir" -O1
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+
+ # pygmentize is included in python-pygments
+ rm "$pkgdir/usr/bin/pygmentize"
+ rmdir "$pkgdir/usr/bin"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list