void-packages/srcpkgs/gammaray/template
2020-09-24 20:23:29 -04:00

33 lines
1.1 KiB
Bash

# Template file for 'gammaray'
pkgname=gammaray
version=2.11.2
revision=1
build_style=cmake
configure_args="-DGAMMARAY_INSTALL_QT_LAYOUT=true -DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt5/mkspecs/modules -DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins/gammaray"
hostmakedepends="qt5-host-tools qt5-devel"
makedepends="qt5-devel"
short_desc="Tool to poke around in a Qt-application"
maintainer="toluschr <toluschr@protonmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/KDAB/GammaRay"
distfiles="${homepage}/releases/download/v${version}/gammaray-${version}.tar.gz"
checksum=bba4f21a2bc81ec8ab50dce5218c7a375b92d64253c690490a6fcb384c2ff9f3
LDFLAGS=" -Wl,-no-fatal-warnings"
post_patch() {
vsed -i CMakeLists.txt -e 's|plugins/gammaray|lib/qt5/plugins/gammaray|'
}
gammaray-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/qt5/mkspecs
cd "${DESTDIR}"
# unversioned probes should go in main package
for f in usr/lib/*.so; do [ -L "${f}" ] && { vmove "${f}"; }; done
}
}