37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'accounts-qml-module'
|
|
pkgname=accounts-qml-module
|
|
version=0.7
|
|
revision=2
|
|
_commit="05e79ebbbf3784a87f72b7be571070125c10dfe3"
|
|
build_style=qmake
|
|
build_helper=qemu
|
|
configure_args="CONFIG+=no_docs"
|
|
hostmakedepends="pkg-config qt6-base"
|
|
makedepends="signond-devel libaccounts-qt6-devel qt6-declarative-devel"
|
|
short_desc="Expose the Online Accounts API to QML applications"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.1-only"
|
|
homepage="https://gitlab.com/accounts-sso/accounts-qml-module"
|
|
#distfiles="https://gitlab.com/accounts-sso/accounts-qml-module/-/archive/VERSION_$version/accounts-qml-module-VERSION_$version.tar.gz"
|
|
distfiles="https://gitlab.com/accounts-sso/accounts-qml-module/-/archive/$_commit/accounts-qml-module-$_commit.tar.gz"
|
|
checksum=1a53a6d8a3a56694244bc24bdab844d91420483744822d08ae8517ff7df84763
|
|
export QT=qt6
|
|
|
|
if [ $CROSS_BUILD ]; then
|
|
hostmakedepends+=" accounts-qml-module"
|
|
fi
|
|
|
|
post_patch() {
|
|
if [ $CROSS_BUILD ]; then
|
|
vsed -i src/src.pro -e '/^INSTALLS [+]= qmltypes_gen/d'
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf $DESTDIR/usr/bin
|
|
if [ $CROSS_BUILD ]; then
|
|
vinstall /usr/lib/qt6/qml/SSO/OnlineAccounts/plugin.qmltypes 644 \
|
|
usr/lib/qt6/qml/SSO/OnlineAccounts/
|
|
fi
|
|
}
|