signon-ui: build with qt6

This commit is contained in:
Luciogi 2024-03-09 13:40:51 +05:00 committed by Đoàn Trần Công Danh
parent 8747ac0d91
commit 2ec9a136ac

View File

@ -1,18 +1,25 @@
# Template file for 'signon-ui'
pkgname=signon-ui
version=0.15
version=0.17
revision=1
_commit="eef943f0edf3beee8ecb85d4a9dae3656002fc24"
build_style=qmake
hostmakedepends="qt5-qmake pkg-config qt5-host-tools"
makedepends="libaccounts-qt5-devel libnotify-devel libproxy-devel
qt5-webkit-devel qt5-x11extras-devel signond-devel"
hostmakedepends="pkg-config qt6-base qt6-tools"
makedepends="libaccounts-qt6-devel libnotify-devel libproxy-devel
qt6-webengine-devel signond-devel"
short_desc="Online Accounts Sign-on UI"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="GPL-3.0-only"
homepage="https://launchpad.net/signon-ui"
distfiles="https://launchpad.net/signon-ui/trunk/${version}/+download/signon-ui-${version}.tar.bz2"
checksum=a14f0a82af129e33476e9d6839fa2d5e40c46a6e8bb71d7deb6255d995764af3
homepage="https://gitlab.com/accounts-sso/signon-ui"
distfiles="https://gitlab.com/accounts-sso/signon-ui/-/archive/$_commit/signon-ui-$_commit.tar.gz"
checksum=0906a1adee88e331e9dcf1f2d5978c24f8564fb734f5c114c88bddb63196d3d4
export QT=qt6
post_install() {
rm "${DESTDIR}/usr/bin/signon-ui-unittest"
if [ "$XBPS_WORDSIZE$XBPS_WORDSIZE" != "64$XBPS_TARGET_WORDSIZE" ]; then
broken="no qt6-webengine"
fi
post_patch() {
# Don't build tests, they still require Webkit
vsed -e "s|src \\\|src|" -e "/tests/d" -i signon-ui.pro
}