summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Warner2018-06-14 12:16:41 -0700
committerLeif Warner2018-06-14 12:16:41 -0700
commit41eb392857e8bbaa2b68106492c0a13598178001 (patch)
treef2828822b8aad2146d0b599ec06b6d89b0ac0774
parentb61690f676be7096111f7412718780e8d335061c (diff)
downloadaur-41eb392857e8bbaa2b68106492c0a13598178001.tar.gz
Added a simple systemd user service for taffybar.
Set to restart on crash. Use with `systemd --user start taffybar`.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD5
-rw-r--r--taffybar.service7
3 files changed, 16 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b4e3040cd22..f322728bb87 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Thu Jun 14 19:16:06 UTC 2018
pkgbase = taffybar
pkgdesc = A desktop bar similar to xmobar, but with more GUI
pkgver = 2.1.1
- pkgrel = 6
+ pkgrel = 7
url = http://github.com/travitch/taffybar
install = taffybar.install
arch = i686
@@ -52,10 +54,12 @@ pkgbase = taffybar
source = http://hackage.haskell.org/packages/archive/taffybar/2.1.1/taffybar-2.1.1.tar.gz
source = dynamic-compilation.patch
source = taffybar.install
+ source = taffybar.service
source = https://raw.githubusercontent.com/taffybar/taffybar/13b32fc2bc62129093494e939339a979d641691c/xmonad.hs.example
sha256sums = 1352a3d2937a4694010e55fbb353779d53223c3ec4b2e18847d388c59b07778d
sha256sums = ff90b6e3d05b3bb94cfc2365708bbabbb96fd9a9a4919c0face6f8d2b69037e7
sha256sums = e1a1c820057c64fab4521de3c9b153e4d54e7df9a96d94679dbffc9cec245076
+ sha256sums = f4a08e887ba527a24f4cecc22393023bf7230172cc76f840ddfc5cfc54182a7e
sha256sums = 1a8ca4f177891941960585e228d5386ea9f120a1bb12ac0a956200de839032cb
pkgname = taffybar
diff --git a/PKGBUILD b/PKGBUILD
index 668fb61f296..bf95d4fa41c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer: Leif Warner <abimelech@gmail.com>
pkgname=taffybar
pkgver=2.1.1
-pkgrel=6
+pkgrel=7
license=('BSD3')
pkgdesc="A desktop bar similar to xmobar, but with more GUI"
url="http://github.com/travitch/taffybar"
@@ -53,11 +53,13 @@ install=taffybar.install
source=("http://hackage.haskell.org/packages/archive/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
"dynamic-compilation.patch"
"taffybar.install"
+ "taffybar.service"
"https://raw.githubusercontent.com/taffybar/taffybar/13b32fc2bc62129093494e939339a979d641691c/xmonad.hs.example")
sha256sums=('1352a3d2937a4694010e55fbb353779d53223c3ec4b2e18847d388c59b07778d'
'ff90b6e3d05b3bb94cfc2365708bbabbb96fd9a9a4919c0face6f8d2b69037e7'
'e1a1c820057c64fab4521de3c9b153e4d54e7df9a96d94679dbffc9cec245076'
+ 'f4a08e887ba527a24f4cecc22393023bf7230172cc76f840ddfc5cfc54182a7e'
'1a8ca4f177891941960585e228d5386ea9f120a1bb12ac0a956200de839032cb')
# PKGBUILD functions
@@ -97,6 +99,7 @@ package() {
install -Dm 644 CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 taffybar.hs.example -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 ${srcdir}/taffybar.service -t "${pkgdir}/usr/lib/systemd/user"
install -Dm 644 ${srcdir}/xmonad.hs.example -t "{$pkgdir}/usr/share/doc/${pkgname}"
rm -f "${pkgdir}/usr/share/doc/${pkgname}/LICENSE"
diff --git a/taffybar.service b/taffybar.service
new file mode 100644
index 00000000000..06dffeb5d3c
--- /dev/null
+++ b/taffybar.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Taffybar status bar
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/taffybar
+Restart=on-failure