void-packages/srcpkgs/adwaita-qt/template

38 lines
1006 B
Bash

# Template file for 'adwaita-qt'
pkgname=adwaita-qt
version=1.4.2
revision=2
build_style=cmake
hostmakedepends="qt5-host-tools qt5-qmake qt6-base"
makedepends="qt5-devel qt5-x11extras-devel qt6-base-devel"
short_desc="Style to bend Qt applications to look like they belong into GNOME Shell"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="GPL-2.0-or-later"
homepage="https://github.com/FedoraQt/adwaita-qt"
distfiles="https://github.com/FedoraQt/adwaita-qt/archive/${version}.tar.gz"
checksum=cd5fd71c46271d70c08ad44562e57c34e787d6a8650071db115910999a335ba8
post_configure() {
cmake_builddir=build-qt6
local fprefix=$wrksrc/build-qt6
CFLAGS="${CFLAGS} -ffile-prefix-map=$fprefix=."
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$fprefix=."
configure_args+=" -DUSE_QT6=1"
do_configure
}
post_build() {
cmake_builddir=build-qt6 do_build
}
post_install() {
vdoc README.md
}
adwaita-qt6_package() {
short_desc+=" - Qt6"
pkg_install() {
DESTDIR="${PKGDESTDIR}" ninja -C build-qt6 install
}
}