From b9fa2bbca7108fe2ee9d0aba220a23cff9a179a8 Mon Sep 17 00:00:00 2001 From: LoveSy Date: Wed, 31 May 2017 21:28:00 +0800 Subject: [PATCH] Add flexc++ --- flexcpp/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 flexcpp/PKGBUILD diff --git a/flexcpp/PKGBUILD b/flexcpp/PKGBUILD new file mode 100644 index 00000000..7406ac73 --- /dev/null +++ b/flexcpp/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Kevin Brodsky +# Contributor: Anton Jongsma +pkgname=flexc++ +pkgver=2.06.01 +pkgrel=1 +pkgdesc="C++ scanner generator" +arch=('i686' 'x86_64') +url="https://fbb-git.github.io/flexcpp/" +license=('GPL') +# Versions taken from the 'required' file in sources +# depends=('libbobcat>=4.01.00') +makedepends=('icmake>=8.00.04' 'yodl>=3.06.00') +optdepends=() +source=("https://github.com/yujincheng08/flexcpp/archive/${pkgver}-${pkgrel}.tar.gz") +sha256sums=('8086e4d29edd05a48f8ba4c5fdb2aafcbb6dfae908e20e11f8dd4231ef746d2f') + +build() { + cd "$srcdir/flexcpp-${pkgver}-${pkgrel}/flexc++" + + CXXFLAGS="$CXXFLAGS --std=c++14" + # 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}-${pkgrel}/flexc++" + + # Since 2.03.02, first argument to install is (x = all), + # and second is the base directory + ./build install x "$pkgdir" +}