PKGBUILD 1015 B

123456789101112131415161718192021222324252627282930313233
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Artix): artoo <artoo@artixlinux.org>
  3. pkgname=mdadm-openrc
  4. pkgver=20210505
  5. pkgrel=2
  6. pkgdesc="OpenRC mdadm init script"
  7. arch=('any')
  8. url="https://gitea.artixlinux.org/artixlinux/packages-openrc"
  9. license=('GPL2')
  10. groups=('openrc-system')
  11. provides=('init-mdadm')
  12. conflicts=('init-mdadm')
  13. backup=('etc/conf.d/mdadm')
  14. source=("mdadm.confd"
  15. "mdadm.initd"
  16. "mdraid.confd"
  17. "mdraid.initd")
  18. sha256sums=('ec55674955af7a31da51b8b72b599e8519809287dad796a9b16155bcba471b79'
  19. '19c26c3eac1cfceafb4ba8de66ea83a4e5ed12a3012913f1d24511edf796c12a'
  20. 'b489ced10391d4295bb8ca29e128b0d4217c290f1b4e37b05f5a9275048d289d'
  21. '761c36a7c34271025ca96138f408138233359dd5bce1f876e2bac69b3eabdfe1')
  22. package() {
  23. depends=('openrc' 'mdadm')
  24. for f in mdadm mdraid;do
  25. install -Dm644 "${srcdir}"/"$f".confd "${pkgdir}"/etc/conf.d/"$f"
  26. install -Dm755 "${srcdir}"/"$f".initd "${pkgdir}"/etc/init.d/"$f"
  27. done
  28. }