talimat 793 B

12345678910111213141516171819202122232425262728293031
  1. # Tanım: OCaml için bir yapı sistemi
  2. # URL: https://github.com/ocaml/dune
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: ocaml ocaml-findlib opam
  5. # Grup: kütüphane
  6. isim=dune
  7. surum=1.0b19.1
  8. devir=1
  9. kaynak=(https://github.com/ocaml/dune/archive/${surum/b/+beta}.tar.gz::${isim}-${surum}.tar.gz)
  10. derle() {
  11. cd ${isim}-${surum/b/-beta}
  12. make release
  13. # Initialize OPAM
  14. export OPAMROOT="${SRC}"/opam
  15. opam init -n
  16. # Work around the install command
  17. export OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)"
  18. install -dm755 ${OCAMLFIND_DESTDIR}
  19. make INSTALL_ARGS="--prefix='${PKG}'/usr --libdir='${OCAMLFIND_DESTDIR}'" install
  20. # Fix doc and man install
  21. install -dm755 "${PKG}"/usr/share
  22. mv "${PKG}"/usr/{doc,share/}
  23. mv "${PKG}"/usr/{man,share/}
  24. }