# Description: OAuth 2 plugin for signon
# URL: https://gitlab.com/accounts-sso/signon-plugin-oauth2
# Packager: pierre at nutyx dot org
# Depends on: signond qt-xmlpatterns 

name=signon-plugin-oauth2
version=0.23
release=2

PKGMK_KEEP_SOURCES="no"

source=(https://gitlab.com/accounts-sso/signon-plugin-oauth2/repository/archive.tar.gz)

build() {
cd signon-plugin-oauth2*
sed -i '/-Werror/d' common-project-config.pri

# Do not install tests and example
echo 'INSTALLS =' >>tests/tests.pro
echo 'INSTALLS =' >>example/example.pro

qmake PREFIX=/usr LIBDIR=/usr/lib
make
make INSTALL_ROOT=$PKG install
}
