adwaita-qt: build for Qt6
This commit is contained in:
parent
3cc6d0612d
commit
d2ade215f1
|
@ -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 <chocimier@tlen.pl>"
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
adwaita-qt
|
Loading…
Reference in New Issue