44 lines
1.2 KiB
Bash
44 lines
1.2 KiB
Bash
# Template file for 'seexpr-krita'
|
|
pkgname=seexpr-krita
|
|
version=4.0.4.0
|
|
revision=1
|
|
wrksrc="kseexpr-${version}"
|
|
build_style=cmake
|
|
configure_args="-DBUILD_DEMOS=OFF"
|
|
hostmakedepends="qt5-qmake qt5-host-tools extra-cmake-modules gettext"
|
|
makedepends="qt5-tools-devel ki18n-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=ea4f6a8e820e6cc12d2a1e6977e96ea5457f37729fe0bc4ee8cc62d4c26c36ae
|
|
|
|
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'
|
|
}
|
|
|
|
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/lib/cmake
|
|
vmove usr/share/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|