talimat 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Description: Bir sürücü grubundaki diğer işletim sistemlerini bulmak için yardımcı program.
  2. # URL: https://packages.debian.org/source/sid/os-prober
  3. # Packager: milisarge
  4. # Depends on:
  5. name=os-prober
  6. version=1.71
  7. release=1
  8. source=(http://ftp.de.debian.org/debian/pool/main/o/os-prober/os-prober_1.71.tar.xz)
  9. build() {
  10. cd $name-$version
  11. # Compile newns
  12. make
  13. # Create a hierharchy for os-prober package, and copy files into it.
  14. mkdir -p $PKG/var/lib/$name
  15. mkdir -p $PKG/usr/bin
  16. cp linux-boot-prober $PKG/usr/bin
  17. cp os-prober $PKG/usr/bin
  18. mkdir -p $PKG/usr/lib/$name
  19. cp newns $PKG/usr/lib/$name
  20. mkdir -p $PKG/usr/lib/os-probes
  21. cp os-probes/common/* $PKG/usr/lib/os-probes
  22. mkdir -p $PKG/usr/lib/os-probes/mounted
  23. mkdir -p $PKG/usr/lib/os-probes/mounted/efi
  24. cp os-probes/mounted/common/* $PKG/usr/lib/os-probes/mounted
  25. cp os-probes/mounted/x86/efi/* $PKG/usr/lib/os-probes/mounted/efi
  26. rm -r os-probes/mounted/x86/efi
  27. cp os-probes/mounted/x86/* $PKG/usr/lib/os-probes/mounted
  28. mkdir -p $PKG/usr/lib/os-probes/init
  29. cp os-probes/init/common/* $PKG/usr/lib/os-probes/init
  30. mkdir -p $PKG/usr/lib/linux-boot-probes
  31. cp linux-boot-probes/common/* $PKG/usr/lib/linux-boot-probes/
  32. mkdir $PKG/usr/lib/linux-boot-probes/mounted
  33. cp linux-boot-probes/mounted/common/* $PKG/usr/lib/linux-boot-probes/mounted
  34. cp linux-boot-probes/mounted/x86/* $PKG/usr/lib/linux-boot-probes/mounted
  35. mkdir -p $PKG/usr/share/$name
  36. cp common.sh $PKG/usr/share/$name
  37. chmod +x $PKG/usr/share/$name/common.sh
  38. # End of making os-prober directory hierarchy.
  39. tar -cvjf os-prober#1.70.pkg.tar.bz2 $PKG/*
  40. }