1 # Maintainer: Christian Hesse <mail@eworm.de>
6 pkgdesc='Antlr C++ runtime'
7 url='https://www.antlr.org/'
10 makedepends=('git' 'cmake' 'python')
12 source=("https://www.antlr.org/download/antlr4-cpp-runtime-${pkgver}-source.zip")
13 sha256sums=('642d59854ddc0cebb5b23b2233ad0a8723eef20e66ef78b5b898d0a67556893b')
18 export CFLAGS+=' -ffat-lto-objects'
19 export CXXFLAGS+=' -ffat-lto-objects'
24 -DCMAKE_BUILD_TYPE=Release \
25 -DCMAKE_INSTALL_PREFIX=/usr \
26 -DCMAKE_CXX_STANDARD=17 \
34 make DESTDIR="${pkgdir}/" install
35 install -Dm644 "${srcdir}"/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE