PKGBUILD 735 B

12345678910111213141516171819202122232425
  1. # Maintainer: Parabola Hackers <dev@lists.parabola.nu>
  2. pkgname=yggdrasil-openrc
  3. pkgver=0.4.7
  4. pkgrel=1
  5. pkgdesc="OpenRC init script for 'yggdrasil' service"
  6. arch=(any)
  7. license=(custom:yggdrasil-LGPL3)
  8. depends=(yggdrasil)
  9. source=(https://raw.githubusercontent.com/yggdrasil-network/yggdrasil-go/v${pkgver}/contrib/openrc/yggdrasil)
  10. sha256sums=('3f83382204f1c0cc807a0873c3d4f024445965a552da251ca48d87744dec07cd')
  11. package()
  12. {
  13. install -d "${pkgdir}"/etc/init.d
  14. install -Dm755 "${srcdir}"/yggdrasil "${pkgdir}"/etc/init.d/${pkgname}
  15. install -d "${pkgdir}"/usr/share/licenses/${pkgname}
  16. ln -s ../yggdrasil/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  17. }