PKGBUILD 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer: Luke Shumaker <lukeshu@parabola.nu>
  3. # Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. pkgname=sysvinit
  5. pkgver=2.96
  6. pkgrel=1
  7. pkgdesc='Linux System V Init'
  8. url='http://www.nongnu.org/sysvinit/'
  9. arch=('i686' 'x86_64' 'armv7h')
  10. license=('GPL')
  11. depends=('glibc' 'initscripts')
  12. provides=('init')
  13. conflicts=(${provides[@]})
  14. source=(#"https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
  15. "http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
  16. sha256sums=('2a2e26b72aa235a23ab1c8471005f890309ce1196c83fbc9413c57b9ab62b587'
  17. 'SKIP')
  18. validpgpkeys=('146BF1D0D20B006B10299B4CFA3EC79A4C0C11CC') # Jesse Smith <jsmith@resonatingmedia.com>
  19. build() {
  20. cd "$pkgname-$pkgver"
  21. make
  22. }
  23. package() {
  24. cd "$pkgname-$pkgver"
  25. install -d "$pkgdir/usr/bin"
  26. ln -s usr/bin "$pkgdir/bin"
  27. ln -s usr/bin "$pkgdir/sbin"
  28. make ROOT="$pkgdir" install
  29. rm "$pkgdir/bin" "$pkgdir/sbin"
  30. install -d "$pkgdir/usr/share/licenses/$pkgname"
  31. install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  32. local rmprogs=(
  33. # provided by e2fsprogs
  34. logsave
  35. # provided by util-linux
  36. last
  37. lastb
  38. mesg
  39. sulogin
  40. utmpdump
  41. wall
  42. # provided by procps-ng
  43. pidof
  44. )
  45. cd "$pkgdir"
  46. local prog
  47. for prog in "${rmprogs[@]}"; do
  48. rm usr/bin/"$prog" usr/share/man/man?/"$prog".?
  49. done
  50. # old Arch Linux sysvinit would have split out fstab-decode,
  51. # killall5, and bootlogd into a separate sysvinit-tools package.
  52. # Unfortunately, because sysvinit-tools provided pidof, procps-ng
  53. # still conflicts=(sysvinit-tools).
  54. }