diff --git a/srcpkgs/signon-plugin-oauth2/template b/srcpkgs/signon-plugin-oauth2/template new file mode 100644 index 00000000000..e1132c3c82d --- /dev/null +++ b/srcpkgs/signon-plugin-oauth2/template @@ -0,0 +1,26 @@ +# Template file for 'signon-plugin-oauth2' +pkgname=signon-plugin-oauth2 +version=0.24 +revision=1 +wrksrc="signon-plugin-oauth2-VERSION_${version}" +build_style=qmake +configure_args="LIBDIR=/usr/lib" +hostmakedepends="pkg-config qt5-host-tools qt5-qmake" +makedepends="qt5-devel signond-devel" +short_desc="OAuth 1.0/2.0 plugin for the SignOn daemon" +maintainer="Piotr Wójcik " +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 + +if [ "$CROSS_BUILD" ]; then + CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5" + for i in ${XBPS_CROSS_BASE}/usr/include/qt5/*; do + CXXFLAGS+=" -I$i" + done +fi + +post_install() { + rm "${DESTDIR}/usr/bin/signon-oauth2plugin-tests" +}