1 # Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
2 # Contributor: Artyom Smirnov <smirnoffjr@gmail.com>
3 # Contributor: Alexis Robert <alexis.robert@gmail.com>
4 # Contributor: Richard Kakaš <richard.kakas@gmail.com>
10 pkgdesc="ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing C++, Java, C or python actions"
11 url="http://www.antlr.org/"
12 arch=("i686" "x86_64")
14 depends=('java-environment' 'bash')
17 source=(http://www.antlr.org/download/${_realname}-${pkgver}-complete.jar
20 md5sums=('1b91dea1c7d480b3223f7c8a9aa0e172'
21 'd124853d585dc0998c6f1b3094ebb501'
22 'bd65b147cce4d919379176346644c658')
27 install -m755 -d "${pkgdir}/usr/share/java" \
29 "${pkgdir}/usr/share/licenses/${pkgname}"
31 install -m644 ${srcdir}/${_realname}-${pkgver}-complete.jar "${pkgdir}/usr/share/java/" || return 1
32 ln -s /usr/share/java/${_realname}-${pkgver}-complete.jar "${pkgdir}/usr/share/java/antlr3.jar" || return 1
33 install -m755 "${srcdir}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" || return 1
36 install -m644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/"