summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPi-Yueh Chuang2021-02-24 13:31:36 -0500
committerPi-Yueh Chuang2021-02-24 13:31:36 -0500
commit28af6071e4e3e92f42f4135685904209a901c9bb (patch)
tree83cd0f9606b0d37fc788a5e1b5ac32dd14da0d06
parentafb315f660c38afcdc28f47a29aae5de8e0afa82 (diff)
downloadaur-28af6071e4e3e92f42f4135685904209a901c9bb.tar.gz
upgpkg: kanshi-git r92.dabd7a2-2
add a systemd unit file to kanshi-git
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD13
-rw-r--r--kanshi.service12
3 files changed, 25 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index aca0eef7c08..ff597a6c478 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = kanshi-git
pkgdesc = Dynamic output configuration for Wayland WMs
- pkgver = r89.7095bed
- pkgrel = 1
+ pkgver = r92.dabd7a2
+ pkgrel = 2
url = https://github.com/emersion/kanshi
arch = x86_64
license = MIT
@@ -14,7 +14,9 @@ pkgbase = kanshi-git
provides = kanshi
conflicts = kanshi
source = kanshi::git+https://github.com/emersion/kanshi.git
+ source = kanshi.service
md5sums = SKIP
+ md5sums = 204747a0d0e0dd77d0e4f88f229c9c28
pkgname = kanshi-git
diff --git a/PKGBUILD b/PKGBUILD
index 71ab508267d..ce9f695151d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Pi-Yueh Chuang <pychuang@pm.me>
# Contributor: Ben Widawsky <ben@bwidawsk.net>
pkgname=kanshi-git
-pkgver=r89.7095bed
-pkgrel=1
+pkgver=r92.dabd7a2
+pkgrel=2
pkgdesc="Dynamic output configuration for Wayland WMs"
arch=(x86_64)
url="https://github.com/emersion/kanshi"
@@ -16,9 +16,12 @@ replaces=()
backup=()
options=()
install=
-source=('kanshi::git+https://github.com/emersion/kanshi.git')
+source=(
+ 'kanshi::git+https://github.com/emersion/kanshi.git'
+ 'kanshi.service'
+)
noextract=()
-md5sums=('SKIP')
+md5sums=('SKIP' '204747a0d0e0dd77d0e4f88f229c9c28')
pkgver() {
cd "$srcdir/${pkgname%-git}"
@@ -35,6 +38,8 @@ build() {
package() {
# install to $pkgdir
DESTDIR="$pkgdir/" meson install -C "${srcdir}/build"
+ # install the systemd unit file
+ install -Dm644 kanshi.service -t "$pkgdir/usr/lib/systemd/user"
# to shut up namcap's warning, even though it's a MIT license
install -Dm644 "$srcdir/${pkgname%-git}/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
# Arch's official Kanshi package installs README, so we do the same
diff --git a/kanshi.service b/kanshi.service
new file mode 100644
index 00000000000..cbe6b62379e
--- /dev/null
+++ b/kanshi.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Dynamic output configuration for Wayland WMs.
+Documentation=https://github.com/emersion/kanshi
+BindsTo=graphical-session.target
+After=graphical-session.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/kanshi
+
+[Install]
+WantedBy=graphical-session.target