makedeb


yq 1:4.44.5-1


yq is a portable command-line YAML, JSON, XML, CSV and properties processor

Click here to go back to the commit logs for yq.

Commit:


Hash: f766ef05b0aecaa33b3090b0a52691675643418f

Message: Clean up and also install man page

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 88b36c4..3a05983 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,11 @@
 generated-by = makedeb
 pkgname = yq
-changelog = 
 epoch = 1
-install = 
 pkgbase = yq
 pkgdesc = yq is a portable command-line YAML, JSON, XML, CSV and properties processor
-pkgrel = 1
+pkgrel = 2
 pkgver = 4.28.2
-url = 
+url = https://mikefarah.gitbook.io/yq/
 arch = amd64
 arch = arm64
 arch = arm32
diff --git a/PKGBUILD b/PKGBUILD
index fd182f0..2385f3b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,45 +1,30 @@
 # Maintainer: Jonathan Apodaca <jrapodaca@gmail.com>
 pkgname=yq
 pkgver=4.28.2
-pkgrel=1
+pkgrel=2
 epoch=1
 pkgdesc="yq is a portable command-line YAML, JSON, XML, CSV and properties processor"
 arch=(amd64 arm64 arm32 i386 i686)
-url=""
+url="https://mikefarah.gitbook.io/yq/"
 license=('MIT')
-groups=()
-depends=()
-makedepends=(golang-go)
-checkdepends=()
-optdepends=()
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=()
-install=
-changelog=
+makedepends=(golang-go gzip pandoc)
 source=(
   "https://github.com/mikefarah/$pkgname/archive/refs/tags/v$pkgver.tar.gz"
 )
-noextract=()
 md5sums=(
   "da7a1304dec93ec963d638dd5dda0f55"
 )
-validpgpkeys=()
-
-prepare() {
-  tar -xf "v$pkgver.tar.gz"
-	cd "yq-$pkgver"
-}
 
 build() {
 	cd "yq-$pkgver"
   go build
+  scripts/generate-man-page-md.sh
+  scripts/generate-man-page.sh
+  gzip yq.1
 }
 
 package() {
 	cd "yq-$pkgver"
-  mkdir -p "${pkgdir}/usr/bin/"
-  mv yq "${pkgdir}/usr/bin/yq"
+  install -D yq "${pkgdir}/usr/bin/yq"
+  install -D yq.1.gz "${pkgdir}/usr/share/man/man1/yq.1.gz"
 }