void-packages/srcpkgs/signon-plugin-oauth2/template

32 lines
1.1 KiB
Bash

# Template file for 'signon-plugin-oauth2'
pkgname=signon-plugin-oauth2
version=0.24
revision=2
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 <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
pre_configure() {
vsed -i common-project-config.pri -e 's/ -Werror/& -Wno-error=deprecated-declarations/'
}
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"
# conflict with kaccounts-providers, this file is less useful
rm "${DESTDIR}/etc/signon-ui/webkit-options.d/www.facebook.com.conf"
}