#Maintainer: Xyne <gro xunilhcra enyx, backwards>
pkgname=pacboy
pkgver=2016
pkgrel=4
pkgdesc='Extensible Pacman wrapper.'
arch=(any)
license=(GPL)
url="https://xyne.dev/projects/pacboy"
depends=(aria2 pyalpm python3 python3-xcpf reflector)
backup=(etc/pacboy/config.json)
source=(
  https://xyne.dev/projects/pacboy/src/pacboy-2016.tar.xz
  https://xyne.dev/projects/pacboy/src/pacboy-2016.tar.xz.sig
)
sha512sums=(
  503a896aa8b704be8052d6aebd7ebfa6f93aca0e6c2cb876362f8e96df65cec0c22b78d92cbd1ab66d90383dbede3a1f3f9666d314a6be11cc4a09be6b523d8f
  80f91a64d7ea5893a076abfafa56293ea83dd03fed4a9c5cfa515732d7e78338df09be85b891dd1e903ed2e684e0f23ae193b230fdd3dd8dc839d2480139c2f4
)
md5sums=(
  347ad1e2e1352f3341e46b7bba90cca5
  15d4fb85f243faa4c415b2cee0bda844
)
validpgpkeys=('D89FAAEB4CECAFD199A2F5E612C6F735F7A9A519')

package ()
{
  cd "$srcdir/$pkgname-$pkgver"
  for exe_ in pacboy pb-query_trust makepkg-download_vcs_sources makepkgx
  do
    install -Dm755 "$exe_" "$pkgdir/usr/bin/$exe_"
  done
  install -Dm644 "config-pacboy.json" "$pkgdir/etc/pacboy/config-pacboy.json"
  install -Dm644 "man/pacboy.json.1.gz" "$pkgdir/usr/share/man/man1/pacboy.json.1.gz"
  install -Dm644 "pacboy-bash-completion.sh" "$pkgdir/usr/share/bash-completion/completions/pacboy"
}

# vim: set ts=2 sw=2 et:
