# Maintainer: nycko123 pkgname=checkupdates-userservice pkgver=1.1 pkgrel=1 pkgdesc='Updates Finder (checkupdates)' arch=('any') url='https://github.com/nycko123/ArchLinux' license=('GPL') depends=('pacman-contrib') source=("https://github.com/nycko123/ArchLinux/raw/master/my-personal-PKGBUILDs/${pkgname}/${pkgname}-${pkgver}-${pkgrel}.tar.gz") sha256sums=('650a66c46a039d9dca5da9e302d71488c89c6014e1c3137fb8b98ebc9aec8c84') package() { # runs pacman's `checkupdate | wc -l > /tmp/checkupdates` install -Dm0644 "$srcdir/checkupdates.service" "$pkgdir/usr/lib/systemd/user/checkupdates.service" # runs timer on checkupdates.service install -Dm0644 "$srcdir/checkupdates.timer" "$pkgdir/usr/lib/systemd/user/checkupdates.timer" # resets /tmp/checkupdates after every `pacman -Syu` (if run between timers) install -Dm0644 "$srcdir/checkupdates.hook" "$pkgdir/etc/pacman.d/hooks/checkupdates.hook" }