[arch-commits] Commit in jo/repos (community-x86_64 community-x86_64/PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Thu Apr 14 21:59:16 UTC 2022


    Date: Thursday, April 14, 2022 @ 21:59:16
  Author: grawlinson
Revision: 1186293

archrelease: copy trunk to community-x86_64

Added:
  jo/repos/community-x86_64/
  jo/repos/community-x86_64/PKGBUILD
    (from rev 1186291, jo/trunk/PKGBUILD)

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

Copied: jo/repos/community-x86_64/PKGBUILD (from rev 1186291, jo/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-04-14 21:59:16 UTC (rev 1186293)
@@ -0,0 +1,50 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Sebastian LaVine <mail at smlavine.com>
+# Contributor: Lance Chen <cyen0312 at gmail.com>
+
+pkgname=jo
+pkgver=1.6
+pkgrel=2
+pkgdesc='JSON output from a shell'
+arch=('x86_64')
+url='https://github.com/jpmens/jo'
+license=('GPL2')
+depends=('glibc')
+makedepends=('git' 'pandoc')
+_commit='6962bca178a6778328d1126ff762120305bb4327'
+source=("$pkgname::git+$url.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  autoreconf -vfi
+
+  ./configure \
+    --prefix=/usr \
+    bashcompdir=/usr/share/bash-completion/completions
+
+  make all
+}
+
+check() {
+  cd "$pkgname"
+
+  make -k check
+}
+
+package() {
+  cd "$pkgname"
+
+  make DESTDIR="$pkgdir" install
+
+  # TODO: patch in autotools, or just leave as is ...
+  cd "$pkgdir/usr/share/bash-completion/completions"
+  mv jo.bash jo
+}



More information about the arch-commits mailing list