void-packages/srcpkgs/qtforkawesome/template

42 lines
1.5 KiB
Bash

# Template file for 'qtforkawesome'
pkgname=qtforkawesome
version=0.2.3
revision=1
_fork_awesome_version=1.2.0
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON -DQT_PACKAGE_PREFIX=Qt6"
make_check_target="check"
hostmakedepends="qt6-tools qt6-base perl-YAML"
makedepends="qtutilities-devel cpp-utilities-devel qt6-base-devel qt6-declarative-devel"
short_desc="Library that bundles ForkAwesome for use within Qt applications"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-or-later, OFL-1.1"
homepage="https://github.com/Martchus/qtforkawesome"
distfiles="https://github.com/Martchus/qtforkawesome/archive/refs/tags/v${version}.tar.gz
https://github.com/ForkAwesome/Fork-Awesome/archive/refs/tags/${_fork_awesome_version}.tar.gz>Fork-Awesome-${_fork_awesome_version}.tar.gz"
checksum="aec0f5e52223d5d1d5fc0a860b626bdecb67df32471f2304b0d9ddf4c5af01ac
23fba5f191f204e0414c547bf4c9b10fd7ca42c151260e8f64698449a75fbdb3"
make_check_pre="env QT_QPA_PLATFORM=offscreen"
skip_extraction="Fork-Awesome-${_fork_awesome_version}.tar.gz"
post_extract() {
vsrcextract -C Fork-Awesome "Fork-Awesome-${_fork_awesome_version}.tar.gz"
}
pre_configure() {
configure_args+="
-DFORK_AWESOME_FONT_FILE=${wrksrc}/Fork-Awesome/fonts/forkawesome-webfont.woff2
-DFORK_AWESOME_ICON_DEFINITIONS=${wrksrc}/Fork-Awesome/src/icons/icons.yml"
}
qtforkawesome-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/share
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}