# PKGBUILD

# Maintainer: Daniele Fucini <dfucini [at] gmail [dot] com>

pkgname=update-notify
pkgver=1.3
pkgrel=1
pkgdesc='Notify when updates are available'
arch=('any')
url="https://github.com/Fuxino/${pkgname}"
license=('GPL-3.0-or-later')
depends=('pacman-contrib'
         'aurutils')
makedepends=('git')
optdepends=('git-monitor: to check git repos for updates')
source=(git+${url}?signed#tag=${pkgver})
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
sha256sums=('702c0b271b2e9e519869f0face4fdcefe55f923d0379f39fd66af32404d2cd0e')

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}.timer ${pkgdir}/usr/lib/systemd/user/${pkgname}.timer
}
