summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin MacMartin2023-10-26 00:32:49 -0400
committerKevin MacMartin2023-10-26 00:32:49 -0400
commit288f376b9d99eff862457989ee057324bfaa45d5 (patch)
tree502694411f60a67ce5c49a8d368a54a647f0be2d
parent09852ae964258c1511acf9b9017e4500d324df69 (diff)
downloadaur-288f376b9d99eff862457989ee057324bfaa45d5.tar.gz
Use ruby-ronn-ng to generate a better man page
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD9
2 files changed, 7 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ff10094cf409..e9c4f6da0877 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = brightness-git
pkgdesc = A small Rust program that uses ddcutil to control your monitor's brightness
pkgver = 20230924.r18.30d3269
- pkgrel = 1
+ pkgrel = 2
url = https://gitlab.com/Devorlon/brightness
arch = i686
arch = x86_64
@@ -10,7 +10,7 @@ pkgbase = brightness-git
arch = aarch64
license = AGPL3
makedepends = cargo
- makedepends = pandoc
+ makedepends = ruby-ronn-ng
depends = ddcutil
provides = brightness
conflicts = brightness
diff --git a/PKGBUILD b/PKGBUILD
index 463fb3ff6cd5..331a75c6b057 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,13 +3,13 @@
_pkgname=brightness
pkgname=${_pkgname}-git
pkgver=20230924.r18.30d3269
-pkgrel=1
+pkgrel=2
pkgdesc="A small Rust program that uses ddcutil to control your monitor's brightness"
url='https://gitlab.com/Devorlon/brightness'
license=('AGPL3')
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
depends=('ddcutil')
-makedepends=('cargo' 'pandoc')
+makedepends=('cargo' 'ruby-ronn-ng')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+$url")
@@ -22,7 +22,8 @@ pkgver() {
prepare() {
cd $_pkgname
- pandoc README.md -s -t man -o "${_pkgname}.1"
+ sed 's|^####|###|' README.md > brightness.md
+ ronn brightness.md
}
build() {
@@ -33,5 +34,5 @@ build() {
package() {
cd $_pkgname
install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
- install -Dm644 "${_pkgname}.1" "$pkgdir/usr/share/man/man1/${_pkgname}.1"
+ install -Dm644 "${_pkgname}" "$pkgdir/usr/share/man/man1/${_pkgname}.1"
}