void-packages/srcpkgs/qtutilities/template
2020-07-09 19:25:59 -04:00

35 lines
1.2 KiB
Bash

# Template file for 'qtutilities'
pkgname=qtutilities
version=6.1.0
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS:BOOL=ON"
hostmakedepends="qt5-qmake qt5-host-tools"
makedepends="qt5-tools-devel cpp-utilities-devel"
short_desc="Qt helper routines, including dialogs, widgets, and models"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="GPL-2.0-only"
homepage="https://github.com/Martchus/qtutilities"
distfiles="https://github.com/Martchus/${pkgname}/archive/v${version}.tar.gz"
checksum=e060b4131e3193a7d72e6b4f4c70a19fddb3033c9e193dd87bc3381b265305bc
qtutilities-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} cpp-utilities-devel"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
# Rename cmake modules to fit with the rest of the system
vmkdir usr/lib/cmake
cmake_source="${DESTDIR}/usr/share/${sourcepkg}/cmake"
cmake_dest="${PKGDESTDIR}/usr/lib/cmake/${sourcepkg}"
mv "$cmake_source" "$cmake_dest"
# Update cmake configuration to point to new location
vsed -i "${cmake_dest}/${sourcepkg}Config.cmake" \
-e "s@share/${sourcepkg}/cmake@lib/cmake/${sourcepkg}@g"
}
}