Add a --quiet mode that updates the pending file without notifying, run by the new update-notify-quiet.service, so aur sync doesn't notify per package.
36 lines
1.5 KiB
Bash
36 lines
1.5 KiB
Bash
# PKGBUILD
|
|
|
|
# Maintainer: Daniele Fucini <dfucini [at] gmail [dot] com>
|
|
|
|
pkgname=update-notify
|
|
pkgver=3.9
|
|
pkgrel=1
|
|
pkgdesc='Notify when updates are available'
|
|
arch=('any')
|
|
url="https://git.shouldnt.work/fuxino/$pkgname"
|
|
license=('GPL-3.0-or-later')
|
|
depends=('pacman-contrib'
|
|
'libnotify')
|
|
makedepends=('git')
|
|
optdepends=('aurutils: to check AUR packages in the local repo for updates'
|
|
'fwupd: to check for firmware updates'
|
|
'git-monitor: to check git repos for updates'
|
|
'trustsight: to vet AUR updates before building them')
|
|
source=("git+$url?signed#tag=$pkgver")
|
|
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
|
|
sha256sums=('86eb0d4f2a7b4cee87b851c3c11581bfee2bbe840705215fc63c4bfa9121c4ff')
|
|
|
|
package()
|
|
{
|
|
cd "$srcdir"/"$pkgname"
|
|
install -Dm755 "$pkgname" "$pkgdir"/usr/bin/"$pkgname"
|
|
install -Dm644 "$pkgname".service "$pkgdir"/usr/lib/systemd/user/"$pkgname".service
|
|
install -Dm644 "$pkgname"-quiet.service "$pkgdir"/usr/lib/systemd/user/"$pkgname"-quiet.service
|
|
install -Dm644 "$pkgname".timer "$pkgdir"/usr/lib/systemd/user/"$pkgname".timer
|
|
install -Dm644 "$pkgname".path "$pkgdir"/usr/lib/systemd/user/"$pkgname".path
|
|
install -Dm755 "$pkgname"-refresh "$pkgdir"/usr/lib/"$pkgname"/refresh
|
|
install -Dm644 "$pkgname".hook "$pkgdir"/usr/share/libalpm/hooks/"$pkgname".hook
|
|
install -Dm644 README.md "$pkgdir"/usr/share/doc/"$pkgname"/README.md
|
|
install -Dm644 config.example "$pkgdir"/usr/share/doc/"$pkgname"/config.example
|
|
}
|