summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 6 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 10e5b123b3c..678ef68c868 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,7 +7,7 @@ pkgbase = kile-wl
license = MIT
makedepends = git
makedepends = rust
- makedepends = scdoc
+ optdepends = scdoc
provides = kile-wl
conflicts = kile-wl
source = kile-wl::git+https://gitlab.com/snakedye/kile.git
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
}