makedeb


mpr-cli 0.5.2-1


The official command-line interface for the makedeb Package Repository

Click here to go back to the commit logs for mpr-cli.

Commit:


Hash: 87cffd1e044a850f0f44f4bb7a1a583977596e46

Message: Bump version to '0.3.0-1'

Diff


diff --git a/.SRCINFO b/.SRCINFO
index d7af3bb..f3c15c1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,15 +3,19 @@ pkgname = mpr-cli
 pkgbase = mpr-cli
 pkgdesc = The official command-line interface for the makedeb Package Repository
 pkgrel = 1
-pkgver = 0.2.0
+pkgver = 0.3.0
 url = https://github.com/makedeb/mpr-cli
 arch = any
 license = GPL3
+makedepends = asciidoctor
 makedepends = cargo
 makedepends = libssl-dev
 makedepends = pkg-config
-source = https://github.com/makedeb/mpr-cli/archive/refs/tags/v0.2.0.tar.gz
+optdepends = r!less
+source = https://github.com/makedeb/mpr-cli/archive/refs/tags/v0.3.0.tar.gz
 sha256sums = SKIP
+makedepends = asciidoctor
 makedepends = cargo
 makedepends = libssl-dev
 makedepends = pkg-config
+optdepends = r!less
diff --git a/PKGBUILD b/PKGBUILD
index cd33523..7760cd4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,18 @@
 # Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
 pkgname=mpr-cli
-pkgver=0.2.0
+pkgver=0.3.0
 pkgrel=1
 pkgdesc='The official command-line interface for the makedeb Package Repository'
 arch=('any')
-makedepends=('cargo' 'libssl-dev' 'pkg-config')
+optdepends=(
+    'r!less'
+)
+makedepends=(
+    'asciidoctor'
+    'cargo'
+    'libssl-dev'
+    'pkg-config'
+)
 license=('GPL3')
 url='https://github.com/makedeb/mpr-cli'
 
@@ -14,11 +22,15 @@ sha256sums=('SKIP')
 build() {
     cd "${pkgname}-${pkgver}/"
     cargo build --release
+
+    sed "s|\$\${MPR_VERSION}|${pkgver}|" man/mpr.8.adoc
 }
 
 package() {
     cd "${pkgname}-${pkgver}/"
-    install -Dm 755 "target/release/mpr" "${pkgdir}/usr/bin/mpr"
+    install -Dm 755 target/release/mpr "${pkgdir}/usr/bin/mpr"
+    asciidoctor -b manpage -o - man/mpr.1.adoc | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/man/man1/mpr.1"
+    install -Dm 644 completions/mpr.bash "${pkgdir}/usr/share/bash-completion/completions/mpr"
 }
 
 # vim: set sw=4 expandtab: