# Maintainer: Kevin Brodsky # Contributor: Anton Jongsma pkgname=flexc++ pkgver=2.14.00 pkgrel=1 pkgdesc="C++ scanner generator" arch=('i686' 'x86_64') url="https://fbb-git.gitlab.io/flexcpp/" license=('GPL') # Versions taken from the 'required' file in sources depends=('libbobcat>=5.04.01') makedepends=('icmake>=9.03.01' 'yodl>=4.02.02') optdepends=() source=("https://gitlab.com/fbb-git/flexcpp/-/archive/${pkgver}/flexcpp-${pkgver}.tar.gz") md5sums=('32b273a598a7830386d373f4d531e3f1') build() { cd "$srcdir/flexcpp-${pkgver}/flexc++" CXXFLAGS="$CXXFLAGS --std=c++20" # Add the -P option not to use precompiled headers, which can be useful since # they require a lot of free space, compared to a normal compilation: # ./build -P program ./build program ./build man ./build manual } package() { cd "$srcdir/flexcpp-${pkgver}/flexc++" # Since 2.03.02, first argument to install is (x = all), # and second is the base directory ./build install x "$pkgdir" }