diff --git a/srcpkgs/adwaita-qt/template b/srcpkgs/adwaita-qt/template index 83dec4a991a..da14f12e507 100644 --- a/srcpkgs/adwaita-qt/template +++ b/srcpkgs/adwaita-qt/template @@ -1,10 +1,10 @@ # Template file for 'adwaita-qt' pkgname=adwaita-qt version=1.4.2 -revision=1 +revision=2 build_style=cmake -hostmakedepends="qt5-host-tools qt5-qmake" -makedepends="qt5-devel qt5-x11extras-devel" +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 " license="GPL-2.0-or-later" @@ -12,6 +12,26 @@ 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 + } +} diff --git a/srcpkgs/adwaita-qt6 b/srcpkgs/adwaita-qt6 new file mode 120000 index 00000000000..b3dd98903e7 --- /dev/null +++ b/srcpkgs/adwaita-qt6 @@ -0,0 +1 @@ +adwaita-qt \ No newline at end of file