summaryrefslogtreecommitdiff
path: root/extra/antlr2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/antlr2/PKGBUILD')
-rw-r--r--extra/antlr2/PKGBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/extra/antlr2/PKGBUILD b/extra/antlr2/PKGBUILD
index 99c2a3a2d..77f37b20a 100644
--- a/extra/antlr2/PKGBUILD
+++ b/extra/antlr2/PKGBUILD
@@ -1,23 +1,24 @@
-# $Id: PKGBUILD 167380 2012-10-01 19:24:15Z guillaume $
-# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# $Id: PKGBUILD 193188 2013-08-18 11:26:04Z guillaume $
+# Maintainer: Guillaume ALAUX <guillaume@archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: George Giorgidze <giorgidze (at) gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgbase=antlr2
pkgname=('antlr2' 'python2-antlr2')
pkgver=2.7.7
-pkgrel=3
-# Arch dependant files in /usr/lib/libantlr.a
-arch=('i686' 'x86_64' 'mips64el')
+pkgrel=4
+# architecture dependant files in /usr/lib/libantlr.a
+arch=('i686' 'x86_64')
url="http://www.antlr2.org/"
license=('custom')
makedepends=('java-environment' 'python2' 'sh')
source=("http://www.antlr2.org/download/antlr-${pkgver}.tar.gz"
- 'runantlr2.sh'
- 'gcc4.4.patch')
+ 'runantlr2.sh'
+ 'gcc4.4.patch')
md5sums=('01cc9a2a454dd33dcd8c856ec89af090'
- 'e4aa827cf78f97c4e5fae086831192d6'
- '8574c93f40e6477e83c29f9b07de49da')
+ 'e4aa827cf78f97c4e5fae086831192d6'
+ '8574c93f40e6477e83c29f9b07de49da')
build() {
cd "${srcdir}/antlr-${pkgver}"
@@ -31,7 +32,7 @@ build() {
}
package_antlr2() {
- 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++ or Java actions"
+ pkgdesc='Tool for language recognition with C++ or Java actions'
depends=('java-runtime' 'sh')
replaces=('antlr')
conflicts=('antlr')
@@ -48,7 +49,7 @@ package_antlr2() {
}
package_python2-antlr2() {
- 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++ or Java actions (Python version)"
+ pkgdesc='Tool for language recognition with C++ or Java actions - Python runtime support'
depends=('antlr2' 'python2')
replaces=('python-antlr')
conflicts=('python-antlr')
@@ -56,4 +57,7 @@ package_python2-antlr2() {
cd ${srcdir}/antlr-${pkgver}/lib/python
python2 setup.py install --root="${pkgdir}" --optimize=1
+
+ install -d ${pkgdir}/usr/share/licenses
+ ln -s /usr/share/licenses/antlr2 ${pkgdir}/usr/share/licenses/${pkgname}
}