42 lines
1.5 KiB
Bash
42 lines
1.5 KiB
Bash
# Template file for 'qtforkawesome'
|
|
pkgname=qtforkawesome
|
|
version=0.2.0
|
|
revision=2
|
|
_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="42de641e79b22d4dd44eb179e8818a8a4bf424c3feec1d0d9524bae5fde458cc
|
|
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"
|
|
}
|
|
}
|