milis/talimatname/genel/o/ocaml-yojson/talimat

27 lines
811 B
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: JSON için optimize edilmiş bir ayrıştırma ve baskı kitaplığı
# URL: https://github.com/mjambon/yojson
# Paketçi: Cihan_Alkan
# Gerekler: ocaml-findlib ocamlbuild dune ocaml-easy-format cppo ocaml-biniou
# Grup: kütüphane
_isim=yojson
isim=ocaml-yojson
surum=1.4.1
devir=1
kaynak=(https://github.com/mjambon/yojson/archive/v${surum}.tar.gz::${isim}-${surum}.tar.gz)
derle() {
cd ${_isim}-${surum}
make all
# Initialize OPAM, this should be removed once opam is “removed” from dune
export OPAMROOT="${SRC}"/opam
opam init -n
# Work around the install command
make OCAMLFIND_DESTDIR="${PKG}$(ocamlfind printconf destdir)" install
# Install LICENSE
install -Dm644 "${SRC}"/opam/system/doc/${_isim}/LICENSE -t "${PKG}"/usr/share/licenses/${isim}/
}