PKGBUILD 1.2 KB

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