diff options
author | Weitian Leung | 2018-10-14 16:44:09 +0800 |
---|---|---|
committer | Weitian Leung | 2018-10-14 16:44:09 +0800 |
commit | c1fa3359091b32f7de84ef32559f1b8858a2d107 (patch) | |
tree | 971d693fa63c7cda765ae42ca95d5072636d2ced | |
parent | 8d74386145ed097f243cbd3624f48fa929709884 (diff) | |
download | aur-cu-notify-git.tar.gz |
Changes the way autostart
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 10 | ||||
-rw-r--r-- | cu-notify-git.install | 13 |
3 files changed, 20 insertions, 8 deletions
@@ -1,10 +1,11 @@ # Generated by mksrcinfo v8 -# Mon Jun 4 13:49:47 UTC 2018 +# Sun Oct 14 08:43:38 UTC 2018 pkgbase = cu-notify-git pkgdesc = Auto check ArchLinux package updates, popup notification if new updates available - pkgver = r9 + pkgver = r10 pkgrel = 1 url = https://github.com/timxx/cu-notify + install = cu-notify-git.install arch = any license = MIT makedepends = git @@ -1,7 +1,7 @@ # Maintainer: Weitian Leung <weitianleung[at]gmail[dot]com> pkgname=cu-notify-git -pkgver=r9 +pkgver=r10 pkgrel=1 pkgdesc="Auto check ArchLinux package updates, popup notification if new updates available" arch=(any) @@ -11,6 +11,7 @@ depends=('python-pyqt5' 'pacman-contrib') makedepends=('git') source=("$pkgname::git+https://github.com/timxx/cu-notify.git") md5sums=('SKIP') +install=${pkgname}.install pkgver() { cd "$srcdir/$pkgname" @@ -19,9 +20,6 @@ pkgver() { package() { cd $srcdir/$pkgname - install -d "$pkgdir/usr/bin" - cp cu-notify "$pkgdir/usr/bin" - - install -d "$pkgdir/etc/xdg/autostart" - cp cu-notify-autostart.desktop "$pkgdir/etc/xdg/autostart" + install -Dm755 "cu-notify" "$pkgdir/usr/bin/cu-notify" + install -Dm644 "cu-notify.service" "$pkgdir/usr/lib/systemd/user/cu-notify.service" } diff --git a/cu-notify-git.install b/cu-notify-git.install new file mode 100644 index 000000000000..b504cfac2e1f --- /dev/null +++ b/cu-notify-git.install @@ -0,0 +1,13 @@ +hints() { + echo "--------------------------------------------------------------------------------" + echo "Run 'systemctl --user enable cu-notify.service' to autostart cu-notify." + echo "--------------------------------------------------------------------------------" +} + +post_install() { + hints +} + +post_upgrade() { + hints +} |