summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBryan Ndjeutcha2021-05-14 18:34:49 -0400
committerBryan Ndjeutcha2021-05-14 18:34:49 -0400
commit1bb45fbfbf8ba590c15388e9d3b7be5635a78f44 (patch)
tree06083b23b83e080233173cf985aad61cce01ac12 /PKGBUILD
parente6c27064a514a8604e1f5d740a55301c43765d0d (diff)
downloadaur-1bb45fbfbf8ba590c15388e9d3b7be5635a78f44.tar.gz
making scdoc optional
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3220b1f73fe..0eaee001682 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,8 @@ pkgdesc="A tiling layout generator for river"
arch=('x86_64')
url="https://gitlab.com/snakedye/kile"
license=('MIT')
-makedepends=('git' 'rust' 'scdoc')
+makedepends=('git' 'rust')
+optdepends=('scdoc')
provides=("kile-wl")
conflicts=("kile-wl")
source=("$pkgname::git+https://gitlab.com/snakedye/kile.git")
@@ -20,8 +21,6 @@ pkgver() {
build() {
cd "$pkgname"
cargo build --release
- cd doc
- scdoc < kile.1.scd > kile.1.gz
}
package() {
@@ -29,6 +28,8 @@ package() {
mkdir -p "$pkgdir/usr/share/man/man1"
cd "$pkgname"
install -Dm755 target/release/kile "$pkgdir/usr/bin/"
- install -Dm644 doc/*.1.gz "$pkgdir/usr/share/man/man1/"
+ if [ -e doc/*.1.gz ]; then
+ install -Dm644 doc/*.1.gz "$pkgdir/usr/share/man/man1/"
+ fi
}