diff options
author | Kevin MacMartin | 2023-10-26 00:32:49 -0400 |
---|---|---|
committer | Kevin MacMartin | 2023-10-26 00:32:49 -0400 |
commit | 288f376b9d99eff862457989ee057324bfaa45d5 (patch) | |
tree | 502694411f60a67ce5c49a8d368a54a647f0be2d | |
parent | 09852ae964258c1511acf9b9017e4500d324df69 (diff) | |
download | aur-288f376b9d99eff862457989ee057324bfaa45d5.tar.gz |
Use ruby-ronn-ng to generate a better man page
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 7 insertions, 6 deletions
@@ -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 @@ -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" } |