talimat 811 B

123456789101112131415161718192021222324252627
  1. # Tanım: JSON için optimize edilmiş bir ayrıştırma ve baskı kitaplığı
  2. # URL: https://github.com/mjambon/yojson
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: ocaml-findlib ocamlbuild dune ocaml-easy-format cppo ocaml-biniou
  5. # Grup: kütüphane
  6. _isim=yojson
  7. isim=ocaml-yojson
  8. surum=1.4.1
  9. devir=1
  10. kaynak=(https://github.com/mjambon/yojson/archive/v${surum}.tar.gz::${isim}-${surum}.tar.gz)
  11. derle() {
  12. cd ${_isim}-${surum}
  13. make all
  14. # Initialize OPAM, this should be removed once opam is “removed” from dune
  15. export OPAMROOT="${SRC}"/opam
  16. opam init -n
  17. # Work around the install command
  18. make OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)" install
  19. # Install LICENSE
  20. install -Dm644 "${SRC}"/opam/system/doc/${_isim}/LICENSE -t "${PKG}"/usr/share/licenses/${isim}/
  21. }