grantlee, fix, clean build (#8105)

This commit is contained in:
Schrijvers Luc
2023-03-25 11:46:52 +01:00
committed by GitHub
parent 8228cf9d94
commit 915cf2f7f0

View File

@@ -10,7 +10,7 @@ text such as code."
HOMEPAGE="https://github.com/steveire/grantlee/"
COPYRIGHT="2010-2017 Stephen Kelly"
LICENSE="GNU LGPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/steveire/grantlee/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="139acee5746b957bdf1327ec0d97c604d4c0b9be42aec5d584297cb5ed6a990a"
SOURCE_FILENAME="grantlee-$portVersion.tar.gz"
@@ -56,24 +56,19 @@ BUILD_PREREQUIRES="
BUILD()
{
mkdir -p build
cd build
cmake .. \
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
-DLIB_SUFFIX="/${secondaryArchSuffix/_/}" \
-DINCLUDE_INSTALL_DIR=$includeDir \
$cmakeDirArgs
make $jobArgs
make docs
$cmakeDirArgs -L
make -C build $jobArgs
make -C build docs
}
INSTALL()
{
cd build
make install
make -C build install
mkdir -p $docDir
install -Dm644 apidox/* $docDir/
install -Dm644 build/apidox/* $docDir/
# Remove unneeded include, no idea, where does it comes from. Aliens?
sed -i 's/;.*\"/"/' "$libDir"/cmake/Grantlee5/GrantleeTargets.cmake