summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD44
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..05691ebd107
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = kanshi-git
+ pkgdesc = Dynamic display configuration for WMs like i3/sway
+ pkgver = r45.970267e
+ pkgrel = 1
+ url = https://github.com/emersion/kanshi
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ depends = rust
+ provides = kanshi
+ conflicts = kanshi
+ source = kanshi::git+https://github.com/emersion/kanshi.git
+ md5sums = SKIP
+
+pkgname = kanshi-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..cff203f9e28
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+src
+pkg
+pdk*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cb4d9041cd0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Mattias Giese <mattiasgiese@posteo.net>
+pkgname=kanshi-git
+pkgver=r45.970267e
+pkgrel=1
+pkgdesc="Dynamic display configuration for WMs like i3/sway"
+arch=(x86_64)
+url="https://github.com/emersion/kanshi"
+license=('MIT')
+groups=()
+depends=('rust')
+makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+backup=()
+options=()
+install=
+source=('kanshi::git+https://github.com/emersion/kanshi.git')
+noextract=()
+md5sums=('SKIP')
+
+# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
+# a description of each element in the source array.
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ cargo build --release --locked
+}
+
+check() {
+ cd "$srcdir/${pkgname%-git}"
+ cargo test --release --locked ${pkgname%-git}
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ install -Dm 755 target/release/${pkgname%-git} -t "${pkgdir}/usr/bin"
+}