Christoph Reiter e40c90814f Makedepend on gcc/make where needed
This means we no longer need msys2-devel
2021-12-13 22:19:56 +01:00

37 lines
995 B
Bash

# Maintainer: LoveSy <shana@zju.edu.cn>
pkgbase=flexcpp
pkgname=flexc++
pkgver=2.07.09
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>=4.01.00')
makedepends=('icmake>=8.00.04' 'yodl>=3.06.00' 'libbobcat-devel>=4.01.00' 'gcc')
optdepends=()
source=("${pkgbase}"::git+https://gitlab.com/fbb-git/flexcpp.git#tag=${pkgver})
sha256sums=('SKIP')
build() {
cd "${srcdir}/${pkgbase}/flexc++"
CXXFLAGS="$CXXFLAGS --std=c++17"
# 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}/${pkgbase}/flexc++"
# Since 2.03.02, first argument to install is <what to install> (x = all),
# and second is the base directory
./build install x "${pkgdir}"
}