Guest User

Untitled

a guest
Nov 20th, 2017
7
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index f809f98..540c8a1 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -12,27 +12,23 @@ source=('http://caml.inria.fr/pub/distrib/caml-light-0.75//cl75unix.tar.gz')
  6. md5sums=('6c236074e4487949ec22001c7a498057')
  7. validpgpkeys=()
  8.  
  9. +prepare() {
  10. + cd 'cl75/src'
  11. + sed -i 's/CPP=\/lib\/cpp/CPP=\/usr\/bin\/cpp/' Makefile
  12. + sed -i 's/BINDIR=\/usr\/local\/bin/BINDIR=\/usr\/bin/' Makefile
  13. + sed -i 's/LIBDIR=\/usr\/local\/lib/LIBDIR=\/usr\/lib/' Makefile
  14. + sed -i 's/MANDIR=\/usr\/local\/man/MANDIR=\/usr\/share\/man/' Makefile
  15. +}
  16. +
  17. build() {
  18. cd 'cl75/src'
  19. - make BINDIR="/usr/bin/"\
  20. - LIBDIR="/usr/lib/caml-light"\
  21. - MANDIR="/usr/share/man/man1"\
  22. - CPP="/usr/bin/cpp -P -traditional -Dunix"\
  23. - configure
  24. - make BINDIR="/usr/bin/"\
  25. - LIBDIR="/usr/lib/caml-light"\
  26. - MANDIR="/usr/share/man/man1"\
  27. - CPP="/usr/bin/cpp -P -traditional -Dunix"\
  28. - world
  29. + make configure
  30. + make world
  31. }
  32.  
  33. check() {
  34. cd 'cl75/src'
  35. - make BINDIR="/usr/bin/"\
  36. - LIBDIR="/usr/lib/caml-light"\
  37. - MANDIR="/usr/share/man/man1"\
  38. - CPP="/usr/bin/cpp -P -traditional -Dunix"\
  39. - bootstrap
  40. + make bootstrap
  41. }
  42.  
  43. package() {
  44. @@ -47,9 +43,11 @@ package() {
  45.  
  46. #Install camllight
  47. cd 'src'
  48. - make BINDIR="$pkgdir/usr/bin/"\
  49. + make BINDIR="$pkgdir/usr/bin"\
  50. LIBDIR="$pkgdir/usr/lib/caml-light"\
  51. MANDIR="$pkgdir/usr/share/man/man1"\
  52. - CPP="/usr/bin/cpp -P -traditional -Dunix"\
  53. install
  54. +
  55. + #Patch built executables' header
  56. + sed -i "s/${pkgdir//\//\\/}//" $pkgdir/usr/lib/caml-light/header
  57. }
RAW Paste Data