pkgname: libantlr3c pkgver: '3.5.3' pkgrel: '1' pkgdesc: C runtime for the ANTLR parsing library url: 'https://www.antlr.org/' arch: x86_64 depends: [] makedepends: - automake - libtool source: - 'https://github.com/antlr/antlr3/archive/${pkgver}.tar.gz' sha256sums: - a0892bcf164573d539b930e57a87ea45333141863a0dd3a49e5d8c919c8a58ab build: "cd antlr3-${pkgver}/runtime/C\n\ncat < antlr3config.h.in\n#include \n#include \n#include\ \ \n#include \n#include \n#include \n#include \n#include\ \ \nEOF\n\naclocal\nlibtoolize\nautomake --add-missing\nautoconf\n\nif [[ \"x86_64\" == 'i686' ]]; then\n\t\ _cfgopt='32' && _cfgopt=\nelse\n\t_cfgopt='64' && _cfgopt=--enable-64bit\nfi\n./configure --prefix=/usr --sysconfdir=/etc\ \ ${_cfgopt}\n\nmake CFLAGS=\"$CFLAGS -Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=incompatible-pointer-types\"\n\n\ make DESTDIR=${PKGDIR} CFLAGS=\"$CFLAGS -Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=incompatible-pointer-types\" install\n\n # Obsolet lib\n rm -f ${PKGDIR}/usr/lib/libantlr3c.la\n" package: | true update: | local url ext ext=".tar.gz" url="http://www.antlr3.org/download/C" lynx -dump -listonly --nonumbers $url|\ tail -1|sed s@http://www.antlr3.org/download/C/${pkgname}-@@|sed s@$ext@@