mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
community/libantlr3c to 3.5.2-1
This commit is contained in:
parent
5456ff1a02
commit
c273c601d6
1 changed files with 22 additions and 9 deletions
|
@ -10,7 +10,7 @@
|
|||
# - patch to build with environment's CFLAGS
|
||||
|
||||
pkgname=libantlr3c
|
||||
pkgver=3.4
|
||||
pkgver=3.5.2
|
||||
pkgrel=1
|
||||
pkgdesc="C runtime for the ANTLR parsing library"
|
||||
url="http://www.antlr.org/"
|
||||
|
@ -18,19 +18,32 @@ arch=("i686" "x86_64")
|
|||
license=("BSD")
|
||||
depends=('bash')
|
||||
makedepends=()
|
||||
source=(http://www.antlr3.org/download/C/${pkgname}-${pkgver}.tar.gz
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/antlr/antlr3/archive/$pkgver.tar.gz"
|
||||
antlr-c-3.3-cflags.patch)
|
||||
md5sums=('08b1420129d5dccd0f4461cedf2a0d7d'
|
||||
'f936f142053c03ec57a0be95b7b8fe0c')
|
||||
sha256sums=('529baf7d11f06b773543e25271c1a6e1735d2f8061f4866d1ea5c99a5d71ee1f'
|
||||
'a40e2e78d60764dcc56478e773152273daf78bd44d428409f7ed9290d6ba4702')
|
||||
|
||||
prepare() {
|
||||
cd "${pkgname}-${pkgver}"
|
||||
patch -p1 -i ../antlr-c-3.3-cflags.patch
|
||||
autoreconf -fi
|
||||
cd "${srcdir}/antlr3-${pkgver}/runtime/C"
|
||||
patch -p1 -i ${srcdir}/antlr-c-3.3-cflags.patch
|
||||
cat <<EOF >antlr3config.h.in
|
||||
#include <stdint.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/socket.h>
|
||||
#include <antlr3defs.h>
|
||||
EOF
|
||||
aclocal
|
||||
libtoolize
|
||||
automake --add-missing
|
||||
autoconf
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
cd "${srcdir}/antlr3-${pkgver}/runtime/C"
|
||||
[ "$CARCH" = "x86_64" ] && _cfgopt=--enable-64bit
|
||||
[[ $CARCH =~ arm.* ]] && _cfgopt=--disable-abiflags
|
||||
./configure --prefix=/usr --sysconfdir=/etc ${_cfgopt}
|
||||
|
@ -38,7 +51,7 @@ build() {
|
|||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
cd "${srcdir}/antlr3-${pkgver}/runtime/C"
|
||||
make install DESTDIR="${pkgdir}"
|
||||
install -Dm0644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue