# Description: component responsible for handling the user interactions which can happen during the login process of an online account
# URL: https://gitlab.com/accounts-sso/signon-ui
# Maintainer: CRUX KDE Ports, kde-ports at crux dot nu
# Depends on: libaccounts-qt libnotify libproxy qt6-webengine signond

name=signon-ui
version=0.17
release=1
_commit=eef943f0edf3beee8ecb85d4a9dae3656002fc24
source=(https://gitlab.com/accounts-sso/signon-ui/-/archive/$_commit/signon-ui-$_commit.tar.bz2
    fake-user-agent.patch)

build() {
    cd $name-$_commit

    sed -e 's|src \\|src|' -e '/tests/d' -i signon-ui.pro
    patch -Np1 -i $SRC/fake-user-agent.patch

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

# vim: set ts=4 et:
