PKGBUILD 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>
  3. # Contributor: Luke Shumaker <lukeshu@parabola.nu>
  4. _pkgname=udev-gentoo-scripts
  5. pkgname=udev-init-scripts
  6. pkgver=34
  7. pkgrel=1
  8. pkgdesc="udev startup scripts for OpenRC"
  9. arch=('any')
  10. url="https://gitweb.gentoo.org/proj/udev-gentoo-scripts.git"
  11. license=('GPL2')
  12. depends=('eudev')
  13. provides=('udev-openrc' 'eudev-openrc')
  14. conflicts=(${provides[@]})
  15. replaces=(${provides[@]})
  16. source=("${url}/snapshot/${_pkgname}-${pkgver}.tar.gz")
  17. sha256sums=('b245b999f0f3a5c2fa12e95115767d0983013e6a23c4b3792640385bb8e1e853')
  18. package(){
  19. cd "${_pkgname}-${pkgver}"
  20. make DESTDIR="${pkgdir}" install
  21. for f in ${pkgdir}/etc/init.d/*;do
  22. sed -e "s|/bin/udevadm|/usr/bin/udevadm|g" \
  23. -e "s|/sbin/udevd|/usr/bin/udevd|g" \
  24. -e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g' \
  25. -i "$f"
  26. done
  27. install -d "${pkgdir}/etc/runlevels/sysinit"
  28. ln -sf "/etc/init.d/udev" "${pkgdir}/etc/runlevels/sysinit/udev"
  29. ln -sf "/etc/init.d/udev-trigger" "${pkgdir}/etc/runlevels/sysinit/udev-trigger"
  30. }