description provide curses / ncurses bindings for the OCaml language
long_description ${description}
homepage https://www.nongnu.org/ocaml-tmk/
master_sites https://download.savannah.gnu.org/releases/ocaml-tmk/
checksums rmd160 3645ef814e20efdaca254f3f6746c1ffe68363cc \
sha256 990a55ff99223edaa04387802907b00c475b46dd921dc5f8c5ede15ac673656f
depends_lib port:ocaml port:ocaml-findlib port:ncurses
file copy ${filespath}/config.h ${worksrcpath}
file copy ${filespath}/config.ml ${worksrcpath}
file copy ${filespath}/Makefile ${worksrcpath}
reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile
#/usr/bin/ranlib: archive member: libcurses_stubs.a(__.SYMDEF SORTED) size too large (archive member extends past the end of the file)
system "cd ${worksrcpath} && ${prefix}/bin/ocamlfind install curses -destdir ${destroot}${prefix}/lib/ocaml/site-lib -ldconf ignore curses.mli libcurses_stubs.a keys.cmo keys.cmi dllcurses_stubs.so curses.cmxa curses.a curses.cmx curses.cmi curses.cma META"
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} CHANGES COPYING ${destroot}${prefix}/share/doc/${name}
livecheck.url ${master_sites}
livecheck.regex ocaml-curses-(\[0-9.\]+)${extract.suffix}