updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / antlr3 / PKGBUILD
blobbaffb7ffe2c21375f653d8a45ab340d2f43faf2b
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>
6 pkgname=antlr3
7 _realname=antlr
8 pkgver=3.4
9 pkgrel=1
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")
13 license=("BSD")
14 depends=('java-environment' 'bash')
15 makedepends=()
16 provides='antlr3'
17 source=(http://www.antlr.org/download/${_realname}-${pkgver}-complete.jar
18         antlr3
19                 LICENSE.txt)
20 md5sums=('1b91dea1c7d480b3223f7c8a9aa0e172'
21          'd124853d585dc0998c6f1b3094ebb501'
22                  'bd65b147cce4d919379176346644c658')
23 options=()
25 build() {
26   # ANTLR itself
27   install -m755 -d "${pkgdir}/usr/share/java" \
28                            "${pkgdir}/usr/bin" \
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
34   
35   # License
36   install -m644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/"