updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / antlr2-dev / PKGBUILD
blob134ed33186014a7ff98827dcd1398be82e828203
1 # Maintainer: imotec <info(at)imotec(dot)nl>
2 pkgname=antlr2-dev
3 pkgver=2.7.7
4 pkgrel=1
5 pkgdesc="Dev extensions from debian for antlr2."
6 arch=('i686' 'x86_64')
7 url="http://www.antlr2.org/"
8 license=('custom')
9 depends=('java-runtime' 'sh')
10 makedepends=('java-environment' 'sh')
11 provides=("antlr2-dev")
12 source=("http://www.antlr2.org/download/antlr-${pkgver}.tar.gz"
13         'gcc4.4.patch'
14         'antlr-config')
15 md5sums=('01cc9a2a454dd33dcd8c856ec89af090'
16         '8574c93f40e6477e83c29f9b07de49da'
17         '920430b9b0215411a13b6c66473cfba7')
19 build() {
21   msg "Preparing"
22   mkdir -p  $pkgdir/usr/bin
23   mkdir -p  $pkgdir/usr/lib
26   msg "Patching"
27   cd "${srcdir}/antlr-${pkgver}"
28   patch -Np0 -i ${srcdir}/gcc4.4.patch
30   msg "Configuring"
31   ./configure --prefix=/usr \
32     --disable-examples \
33     --disable-csharp
35   msg "Building"
36   make -C lib/cpp CXXFLAGS="+ -fPIC -DPIC"
39 package() {
40   msg "Installing"
41   cd "$pkgdir/usr/bin"
42   cp "$srcdir/antlr-config" .
43   chmod 755 ./antlr-config
44   cd "$pkgdir/usr/lib"
45   cp "${srcdir}/antlr-${pkgver}/lib/cpp/src/libantlr.a" ./libantlr-pic.a