48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
# Template file for 'seexpr-krita'
|
|
pkgname=seexpr-krita
|
|
version=4.0.1.0
|
|
revision=1
|
|
wrksrc="kseexpr-${version}"
|
|
build_style=cmake
|
|
configure_args="-DBUILD_DEMOS=OFF"
|
|
hostmakedepends="qt5-qmake qt5-host-tools extra-cmake-modules"
|
|
makedepends="qt5-tools-devel"
|
|
checkdepends="gtest-devel"
|
|
short_desc="Embeddable expression evaluation engine (Krita fork)"
|
|
maintainer="Kartik Singh <kartik.ynwa@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://krita.org"
|
|
distfiles="${KDE_SITE}/kseexpr/${version%.*}/kseexpr-${version}.tar.gz"
|
|
checksum=13b8455883001668f5d79c5734821c1ad2a0fbc91d019af085bb7e31cf6ce926
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
configure_args+=" -DBUILD_TESTS=ON"
|
|
else
|
|
configure_args+=" -DBUILD_TESTS=OFF"
|
|
fi
|
|
|
|
do_check() {
|
|
cd build
|
|
# BlockTests requires llvm, we don't build it with llvm
|
|
ctest -E 'BlockTests'
|
|
}
|
|
|
|
pre_configure() {
|
|
vsed -e 's/float_t/float/g' -i src/KSeExprUI/Utils.cpp -i src/KSeExprUI/Utils.h
|
|
}
|
|
|
|
post_install() {
|
|
[ -d "${DESTDIR}/usr/share/test/KSeExpr" ] && rm -r "${DESTDIR}/usr/share/test/KSeExpr" || true
|
|
}
|
|
|
|
seexpr-krita-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/share/cmake
|
|
vmove usr/share/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|