Files
MSYS2-packages/flexcpp/PKGBUILD
Christoph Reiter a58271b395 Make pkgbase of all packages match the name of the PKGBUILD directory
Similar to https://github.com/Alexpux/MINGW-packages/pull/2878
this adjusts the pkgbase names of all packages to match the directory
name the PKGBUILD is in.

The motivation for this is to provide links to PKGBUILD sources and
git history from the web interface.

The "dwz" directory is deleted as it just contains an older copy of the
elfutils PKGBUILD (elfutils isn't in the repo)
2018-01-28 08:43:40 +01:00

36 lines
1.0 KiB
Bash

# Maintainer: LoveSy <shana@zju.edu.cn>
pkgbase=flexcpp
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 <what to install> (x = all),
# and second is the base directory
./build install x "$pkgdir"
}