PKGBUILD 908 B

12345678910111213141516171819202122232425262728293031
  1. # Maintainer: ondoho <buababg-tvguho@cbfgrb.qr(rot13)>
  2. # Contributor: ondoho <buababg-tvguho@cbfgrb.qr(rot13)>
  3. pkgname=opennic-resolve-git
  4. pkgver=20210110185748
  5. pkgrel=2
  6. epoch=1
  7. pkgdesc="OpenNIC DNS updater"
  8. arch=('any')
  9. url="https://notabug.org/ohnonot/${pkgname%-git}"
  10. license=('GPL3')
  11. depends=('bash' 'jq' 'curl' 'coreutils')
  12. makedepends=('git')
  13. optdepends=('systemd')
  14. backup=("etc/${pkgname%-git}/${pkgname%-git}.conf")
  15. provides=("${pkgname%-git}")
  16. conflicts=("${pkgname%-git}")
  17. source=("$pkgname::git+${url}.git")
  18. sha256sums=('SKIP')
  19. pkgver() {
  20. cd "${srcdir}/${pkgname}"
  21. git log -1 --format="%cd" --date="format:%Y%m%d%H%M%S"
  22. }
  23. package() {
  24. cd "$srcdir/${pkgname}"
  25. install -Dm755 -t "${pkgdir}/usr/bin" ${pkgname%-git}
  26. install -Dm644 -t "${pkgdir}/usr/lib/systemd/system" ${pkgname%-git}.{service,timer}
  27. install -Dm644 -t "${pkgdir}/etc/${pkgname%-git}" ${pkgname%-git}.conf
  28. }