signon-plugin-oauth2: update to 0.25.

This commit is contained in:
Luciogi 2024-03-09 14:41:22 +05:00 committed by Đoàn Trần Công Danh
parent 2ec9a136ac
commit 6106db41ae

View File

@ -1,31 +1,30 @@
# Template file for 'signon-plugin-oauth2'
pkgname=signon-plugin-oauth2
version=0.24
revision=2
version=0.25
revision=1
_commit=fab698862466994a8fdc9aa335c87b4f05430ce6
build_style=qmake
configure_args="LIBDIR=/usr/lib"
hostmakedepends="pkg-config qt5-host-tools qt5-qmake"
makedepends="qt5-devel signond-devel"
hostmakedepends="pkg-config qt6-base"
makedepends="qt6-base-devel signond-devel"
short_desc="OAuth 1.0/2.0 plugin for the SignOn daemon"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="LGPL-2.1-only"
homepage="https://gitlab.com/accounts-sso/signon-plugin-oauth2"
distfiles="https://gitlab.com/accounts-sso/signon-plugin-oauth2/-/archive/VERSION_${version}/signon-plugin-oauth2-VERSION_${version}.tar.bz2"
checksum=d37f6c93b6cd2885b517fd93cdb2407b0164655454ded2ed56e41704f81f05c4
#distfiles="https://gitlab.com/accounts-sso/signon-plugin-oauth2/-/archive/VERSION_${version}/signon-plugin-oauth2-VERSION_${version}.tar.bz2"
distfiles="https://gitlab.com/accounts-sso/signon-plugin-oauth2/-/archive/$_commit/signon-plugin-oauth2-$_commit.tar.gz"
checksum=5a1298cc49f504503f54f20f0f5f685e43f541244a654dd3da58951f43782625
export QT=qt6
pre_configure() {
vsed -i common-project-config.pri -e 's/ -Werror/& -Wno-error=deprecated-declarations/'
# Don't install tests and example
echo 'INSTALLS =' >> tests/tests.pro
echo 'INSTALLS =' >> example/example.pro
}
if [ "$CROSS_BUILD" ]; then
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5"
for i in ${XBPS_CROSS_BASE}/usr/include/qt5/*; do
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt6"
for i in ${XBPS_CROSS_BASE}/usr/include/qt6/*; do
CXXFLAGS+=" -I$i"
done
fi
post_install() {
rm "${DESTDIR}/usr/bin/signon-oauth2plugin-tests"
# conflict with kaccounts-providers, this file is less useful
rm "${DESTDIR}/etc/signon-ui/webkit-options.d/www.facebook.com.conf"
}