40 lines
1.5 KiB
Bash
40 lines
1.5 KiB
Bash
# Template file for 'qtforkawesome'
|
|
pkgname=qtforkawesome
|
|
version=0.1.0
|
|
revision=1
|
|
_fork_awesome_version=1.2.0
|
|
create_wrksrc=yes
|
|
build_wrksrc="${pkgname}-${version}"
|
|
build_style=cmake
|
|
configure_args="-DBUILD_SHARED_LIBS=ON"
|
|
hostmakedepends="qt5-host-tools qt5-qmake perl-YAML"
|
|
makedepends="qt5-devel qt5-declarative-devel qtutilities-devel cpp-utilities-devel
|
|
qt5-gui qt5-core qt5-quickcontrols"
|
|
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"
|
|
checksum="2d71cc6824148194263fda763a78d3ae7ed5a4d0e673181fc5afeabc47e2445e
|
|
23fba5f191f204e0414c547bf4c9b10fd7ca42c151260e8f64698449a75fbdb3"
|
|
|
|
make_check_pre="env QT_QPA_PLATFORM=offscreen"
|
|
make_check_target="check"
|
|
|
|
pre_configure() {
|
|
configure_args+=" -DFORK_AWESOME_FONT_FILE=${wrksrc}/Fork-Awesome-${_fork_awesome_version}/fonts/forkawesome-webfont.woff2
|
|
-DFORK_AWESOME_ICON_DEFINITIONS=${wrksrc}/Fork-Awesome-${_fork_awesome_version}/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"
|
|
}
|
|
}
|