🔒 Repository is read-only – file editing is disabled.

recipes/utils/libantlr3c/PAGBUILD.yaml main

28 linii Raw ← Powrót
12345678910111213141516171819202122232425262728
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 <<EOF> antlr3config.h.in\n#include <stdint.h>\n#include <stdarg.h>\n#include\
  \ <stdlib.h>\n#include <netinet/in.h>\n#include <netinet/tcp.h>\n#include <sys/stat.h>\n#include <sys/socket.h>\n#include\
  \ <antlr3defs.h>\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@@