Verified Commit 6b597114 authored by TBK's avatar TBK

testing/ijq: new aport

parent 77e06744
Pipeline #69425 passed with stages
in 2 minutes and 1 second
# 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"
--- 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:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment