archrelease: copy trunk to community-any
[arch-community.git] / antlr4-runtime / trunk / PKGBUILD
blob7566a328379290ba2393197f36371c758757fc00
1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=antlr4-runtime
4 pkgver=4.12.0
5 pkgrel=1
6 pkgdesc='Antlr C++ runtime'
7 url='https://www.antlr.org/'
8 arch=('x86_64')
9 depends=('gcc-libs')
10 makedepends=('git' 'cmake' 'python')
11 license=('BSD')
12 source=("https://www.antlr.org/download/antlr4-cpp-runtime-${pkgver}-source.zip")
13 sha256sums=('642d59854ddc0cebb5b23b2233ad0a8723eef20e66ef78b5b898d0a67556893b')
14 # FS#72726
15 options=(staticlibs)
17 build() {
18   export CFLAGS+=' -ffat-lto-objects'
19   export CXXFLAGS+=' -ffat-lto-objects'
21   mkdir build
22   cd build
23   cmake .. \
24     -DCMAKE_BUILD_TYPE=Release \
25     -DCMAKE_INSTALL_PREFIX=/usr \
26     -DCMAKE_CXX_STANDARD=17 \
27     -DANTLR4_INSTALL=ON \
28     -DINSTALL_GTEST=OFF
29   make
32 package() {
33   cd build
34   make DESTDIR="${pkgdir}/" install
35   install -Dm644 "${srcdir}"/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE