void-packages/srcpkgs/seexpr-krita/template
2020-10-22 11:55:18 +02:00

47 lines
1.2 KiB
Bash

# Template file for 'seexpr-krita'
pkgname=seexpr-krita
version=3.4.4.0
revision=1
wrksrc="seexpr-${version}"
build_style=cmake
configure_args="-DBUILD_DEMOS=OFF -DUSE_PYTHON=OFF"
hostmakedepends="qt5-qmake qt5-host-tools"
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}/seexpr/seexpr-${version}.tar.gz"
checksum=3f5b5330667d398285c9f7086cc3fd7e1363f3fa75f79b39766c34fe2e233656
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() {
sed -i 's#share/SeExpr2/utils#lib/SeExpr2/utils#' src/utils/CMakeLists.txt
}
post_install() {
[ -d "${DESTDIR}/usr/share/test/SeExpr2" ] && rm -r "${DESTDIR}/usr/share/test/SeExpr2" || 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"
}
}