summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain GÉRARD2019-02-17 18:40:44 +0100
committerRomain GÉRARD2019-02-17 18:40:44 +0100
commit105ffc1c209c5b3a86b58a1609f25a9eebebd679 (patch)
treed53cf6653a74a9ddfe1b9a4ea500e91a244c2c5a
parente879c3356f93f6d82c2a53fcce71e08bbc9a98eb (diff)
downloadaur-rofi-greenclip.tar.gz
Add systemd service for greenclip
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD12
-rw-r--r--greenclip.service10
3 files changed, 20 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 683c2535fbc..094a0b314ec 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,7 @@
pkgbase = rofi-greenclip
pkgdesc = Clipboard manager to use with rofi - Image support and blacklist
pkgver = 3.2
- pkgrel = 0
- epoch = 1
+ pkgrel = 2
url = https://github.com/erebe/greenclip
changelog = changelog
arch = x86_64
@@ -13,7 +12,9 @@ pkgbase = rofi-greenclip
replaces = rofi-greenclip-beta
options = !strip
source = https://github.com/erebe/greenclip/releases/download/3.2/greenclip
+ source = greenclip.service
sha256sums = 18447e96c1fb0afebaa42507e59a2780fc4fdb2e88a44e84421cd1727648c443
+ sha256sums = a5b84a8137aed68ab06d0d38cf1f4c705ce283f300d430b0c6e2d0fd13d1ddd0
pkgname = rofi-greenclip
diff --git a/PKGBUILD b/PKGBUILD
index 4c651131cce..00e83edac8e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,7 @@
pkgname=rofi-greenclip
pkgver=3.2
-epoch=1
-pkgrel=0
+pkgrel=2
pkgdesc="Clipboard manager to use with rofi - Image support and blacklist"
arch=('x86_64')
url="https://github.com/erebe/greenclip"
@@ -19,11 +18,14 @@ conflicts=("rofi-greenclip-beta")
replaces=("rofi-greenclip-beta")
backup=()
options=('!strip')
-source=("https://github.com/erebe/greenclip/releases/download/3.2/greenclip")
+source=("https://github.com/erebe/greenclip/releases/download/3.2/greenclip"
+ "greenclip.service")
noextract=()
-sha256sums=("18447e96c1fb0afebaa42507e59a2780fc4fdb2e88a44e84421cd1727648c443")
+sha256sums=('18447e96c1fb0afebaa42507e59a2780fc4fdb2e88a44e84421cd1727648c443'
+ 'a5b84a8137aed68ab06d0d38cf1f4c705ce283f300d430b0c6e2d0fd13d1ddd0')
package() {
- install -Dm 755 greenclip "$pkgdir/usr/bin/greenclip"
+ install -Dm755 greenclip "$pkgdir/usr/bin/greenclip"
+ install -Dm644 "$srcdir/greenclip.service" "$pkgdir/usr/lib/systemd/user/greenclip.service"
}
diff --git a/greenclip.service b/greenclip.service
new file mode 100644
index 00000000000..3e4922fcbbf
--- /dev/null
+++ b/greenclip.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Greenclip agent
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/greenclip daemon
+Restart=always
+
+[Install]
+WantedBy=default.target