[arch-commits] Commit in (jc jc/repos jc/trunk jc/trunk/PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Fri Apr 15 04:25:24 UTC 2022


    Date: Friday, April 15, 2022 @ 04:25:23
  Author: grawlinson
Revision: 1186441

addpkg: jc 1.18.6-2

Added:
  jc/
  jc/repos/
  jc/trunk/
  jc/trunk/PKGBUILD

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

Added: jc/trunk/PKGBUILD
===================================================================
--- jc/trunk/PKGBUILD	                        (rev 0)
+++ jc/trunk/PKGBUILD	2022-04-15 04:25:23 UTC (rev 1186441)
@@ -0,0 +1,54 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Jameson Pugh <imntreal at gmail.com>
+
+pkgname=jc
+pkgver=1.18.6
+pkgrel=2
+pkgdesc='Converts the output of popular command-line tools and file-types to JSON'
+arch=('any')
+url='https://github.com/kellyjonbrazil/jc'
+license=('MIT')
+depends=(
+  'python'
+  'python-pygments'
+  'python-ruamel-yaml'
+  'python-xmltodict'
+)
+makedepends=('git' 'python-setuptools')
+_commit='e05be3f08beae1b600fc55a3a7b4e28163e15bc0'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build(){
+  cd "$pkgname"
+
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname"
+
+  python -m unittest -v
+}
+
+package() {
+  cd "$pkgname"
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md EXAMPLES.md
+  cp -vr docs "$pkgdir/usr/share/doc/$pkgname"
+
+  # man page
+  install -vDm644 -t "$pkgdir/usr/share/man/man1" man/jc.1
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
+}



More information about the arch-commits mailing list