summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBryan Ndjeutcha2021-04-20 18:08:17 -0400
committerBryan Ndjeutcha2021-04-20 18:08:17 -0400
commitbdb0049bc8080b49a5d0f9bbeed98e4936ab4c6d (patch)
tree01564e8fc418b3327b31d79940c1b27f7428373d /PKGBUILD
downloadaur-bdb0049bc8080b49a5d0f9bbeed98e4936ab4c6d.tar.gz
Infinity and beyond
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1a76d896d6f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Bryan Ndjeutcha <ndjeutcha@gmail.com>
+pkgname=kile-wl
+pkgver=r104.b10ba7d
+pkgrel=1
+pkgdesc="A tiling layout generator for river"
+arch=('x86_64')
+url="https://gitlab.com/snakedye/kile"
+license=('MIT')
+makedepends=('git' 'rust')
+provides=("kile-wl")
+conflicts=("kile-wl")
+source=("$pkgname::git+https://gitlab.com/snakedye/kile.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$pkgname"
+ cargo build --release
+ cd doc
+ scdoc < kile.1.scd > kile.1.gz
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/bin"
+ 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/"
+}
+