1 # Contributor: George Giorgidze <giorgidze (at) gmail.com>
6 pkgdesc="Relational Meta-Language (RML) and Tools, A System for Developing, Compiling and Debugging and Teaching Structural Operational Semantics (SOS) and Natural Semantics Specifications"
8 url="http://www.ida.liu.se/~pelab/rml/"
20 source=(http://openmodelica.ida.liu.se:8080/cb/displayDocument/${pkgname}-mmc_${pkgver}.orig.tar.gz?doc_id=1297)
22 md5sums=('2f6aa7978a6a44af3601d36c1be92994')
25 cd "${srcdir}/${pkgname}-mmc-${pkgver}"
27 sed --in-place -e '6s/SMLCM=/SMLCM=mlton/' configure
28 sed --in-place -e '7s/MLLEX=/MLLEX=mllex/' configure
29 sed --in-place -e '8s/MLYACC=/MLYACC=mlyacc/' configure
33 ./configure --prefix="${pkgdir}/opt/rml" --disable-debug --disable-profile
37 sed --in-place -e '3c\PREFIX=/opt/rml' "${pkgdir}/opt/rml/bin/rmlc"
40 mlton -verbose 3 -target self rml.mlb
43 install -D -m755 compiler/rml "${pkgdir}/opt/rml/bin/rml"
44 install -D -m644 'COPYRIGHT' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"