1 # Contributor: George Giorgidze <giorgidze (at) gmail.com>
6 pkgdesc="The Open Source Modelica Compiler"
8 url="http://www.ida.liu.se/labs/pelab/modelica/OpenModelica.html"
11 depends=('gcc-libs' 'bash')
12 makedepends=('antlr' 'rml' 'openjdk6')
20 source=(http://openmodelica.ida.liu.se:8080/cb/displayDocument/${pkgname}_${pkgver}.orig.tar.gz?doc_id=1318)
22 md5sums=('359a5a601152b2e101273401786416f0')
25 cd "${srcdir}/${pkgname}-${pkgver}+svn3828"
26 RMLHOME="/opt/rml" ANTLRHOME="/usr" CLASSPATH="/usr/share/java/antlr.jar" ./configure --prefix=/opt/openmodelica --without-CORBA --without-MODPAR --without-BOOST
27 CLASSPATH="/usr/share/java/antlr.jar" make omc
28 make prefix="${pkgdir}/opt/openmodelica/" install
29 install -D -m644 'OSMC-License.txt' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
30 rm ${pkgdir}/opt/openmodelica/lib/*mingw.a