# Maintainer: Eduard Toloza <tolosaeduard@gmail.com>

_pkgname=upcheck
pkgname=upcheck-git
pkgver=26.39a3f10
pkgrel=1
pkgdesc='Checker for ArchLinux available updates and send it via notify-rust.'
arch=('x86_64')
url='https://github.com/edu4rdshl/upcheck'
license=('GPL3')
depends=('pacman-contrib')
makedepends=('git')
source=("https://github.com/edu4rdshl/$_pkgname.git")
sha512sums=('SKIP')

package() {
  cd "$_pkgname"

  install -Dm 755 bin/"${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
  install -Dm 755 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README"
  install -Dm 644 "${_pkgname}".service "${pkgdir}/usr/lib/systemd/user/${_pkgname}.service"
}
