PKGBUILD 934 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Artix): Rafli Akmal <rafliakmaltejakusuma@gmail.com>
  3. # Contributor (Artix): artoo <artoo@artixlinux.org>
  4. # Contributor (Artix): Oscar Campos <damnwidget@artixlinux.org>
  5. pkgname=tor-openrc
  6. pkgver=20210521
  7. pkgrel=1
  8. pkgdesc="OpenRC tor init script"
  9. arch=('any')
  10. url="https://github.com/artix-linux/packages-galaxy"
  11. license=('GPL2')
  12. groups=('openrc-galaxy')
  13. provides=('init-tor')
  14. conflicts=('init-tor')
  15. backup=('etc/conf.d/tor')
  16. source=("tor.confd"
  17. "tor.initd")
  18. sha256sums=('ff97bcf48d7e1bb95a71ab8953c8f719a8c0e0da45b231ef538968340291066e'
  19. '943e544b1e70600da1fdfa653b48356929ad69c0f1b1dde7b2aab1e02eca4bf7')
  20. _inst_initd(){
  21. install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
  22. }
  23. _inst_confd(){
  24. install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1
  25. }
  26. package() {
  27. depends=('openrc' 'tor')
  28. _inst_confd 'tor'
  29. _inst_initd 'tor'
  30. }