File PKGBUILD of Package antlr3c-3.4-debian-ubuntu-fedora-opensuse-archlinux
pkgname=libantlr3c
pkgver=3.4
pkgrel=1
pkgdesc='ANother Tool for Language Recognition'
url='https://www.antlr3.org'
arch=(x86_64)
license=(BSD)
makedepends=(git)
source=(antlr3c-3.4.tar.xz)
md5sums=('SKIP')
# Getting around the problem that bsdtar cannot set locale
# since en_US.UTF-8 locale is missing on the system.
# Workaround:
# Use tar instead of bsdtar. This way:
bsdtar() { tar $@; }
prepare() {
find .
#cd antlr3/runtime/C
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 antlr3/runtime/C
./configure --prefix=/usr --enable-64bit --sysconfdir=/etc
make
}
package() {
#cd antlr3/runtime/C
DESTDIR="$pkgdir" make install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}