aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ijq
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2021-01-24 22:49:19 +0100
committerAndy Postnikov <apostnikov@gmail.com>2021-01-25 02:49:35 +0000
commitbf3f7aa96f41648b14c04905d8882831b29abee5 (patch)
tree124f438bd225358210ec45c29c332e84e9a40639 /testing/ijq
parent21f7e7d40da7c23595affb0371bc59e617b49515 (diff)
downloadaports-bf3f7aa96f41648b14c04905d8882831b29abee5.tar.gz
aports-bf3f7aa96f41648b14c04905d8882831b29abee5.tar.bz2
aports-bf3f7aa96f41648b14c04905d8882831b29abee5.tar.xz
testing/ijq: new aport
Diffstat (limited to 'testing/ijq')
-rw-r--r--testing/ijq/APKBUILD27
-rw-r--r--testing/ijq/makefile-destdir.patch30
2 files changed, 57 insertions, 0 deletions
diff --git a/testing/ijq/APKBUILD b/testing/ijq/APKBUILD
new file mode 100644
index 0000000000..1bb597c41b
--- /dev/null
+++ b/testing/ijq/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: TBK <alpine@jjtc.eu>
+# Maintainer: TBK <alpine@jjtc.eu>
+pkgname=ijq
+pkgver=0.2.3
+pkgrel=0
+pkgdesc="Interactive jq tool"
+url="https://git.sr.ht/~gpanders/ijq/"
+arch="all"
+license="GPL-3.0-or-later"
+options="!check" # no test suite
+makedepends="go scdoc"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~gpanders/ijq/archive/v$pkgver.tar.gz
+ makefile-destdir.patch
+ "
+builddir="$srcdir/$pkgname-v$pkgver"
+
+build() {
+ make
+}
+
+package() {
+ DESTDIR="$pkgdir" make PREFIX=/usr install
+}
+
+sha512sums="ecced0f86c23b6fcb19addb944f7c2b7589895672fc625652f40dab466cbd5da9c0fa4522c897a0578c2bc5e2c0a7f8c36a1a5ad19e545d92ec1ed386948aea1 ijq-0.2.3.tar.gz
+0d7de6f9099d9bb86977f924e6dd7c910d3b85d130a7d7e27634075bb41e45a899165540c638204fa896bfc92e46797883f757d29632df8fc78b7026dc59888b makefile-destdir.patch"
diff --git a/testing/ijq/makefile-destdir.patch b/testing/ijq/makefile-destdir.patch
new file mode 100644
index 0000000000..1136a071bd
--- /dev/null
+++ b/testing/ijq/makefile-destdir.patch
@@ -0,0 +1,30 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,6 @@
+-prefix = /usr/local
+-bindir = $(prefix)/bin
+-mandir = $(prefix)/share/man
++PREFIX = /usr/local
++BINDIR = $(PREFIX)/bin
++MANDIR = $(PREFIX)/share/man
+
+ SRCS = main.go
+
+@@ -20,13 +20,13 @@
+
+ .PHONY: install
+ install: ijq ijq.1
+- install -d $(bindir) $(mandir)/man1
+- install -m 0755 ijq $(bindir)
+- install -m 0644 ijq.1 $(mandir)/man1
++ install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
++ install -m 0755 ijq -t $(DESTDIR)$(BINDIR)/
++ install -m 0644 ijq.1 -t $(DESTDIR)$(MANDIR)/man1/
+
+ .PHONY: uninstall
+ uninstall:
+- rm $(bindir)/ijq $(mandir)/man1/ijq.1
++ rm $(BINDIR)/ijq $(MANDIR)/man1/ijq.1
+
+ .PHONY: clean
+ clean: