aboutsummaryrefslogtreecommitdiffstats
path: root/community/signon-plugin-oauth2/APKBUILD
blob: 966624b2e42332dd53ba72ce052797ca0dcc657a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=signon-plugin-oauth2
pkgver=0.25
pkgrel=0
arch="all"
url="https://gitlab.com/accounts-sso/signon-plugin-oauth2"
pkgdesc="Signond OAuth 1.0 and 2.0 plugin"
license="LGPL-2.1-only"
makedepends="
	qt5-qtbase-dev
	signond-dev
	"
source="https://gitlab.com/accounts-sso/signon-plugin-oauth2/-/archive/VERSION_$pkgver/signon-plugin-oauth2-VERSION_$pkgver.tar.gz
	disable-werror.patch
	"
subpackages="$pkgname-dev"
builddir="$srcdir/$pkgname-VERSION_$pkgver"

prepare() {
	default_prepare

	# Don't install tests and example
	echo 'INSTALLS =' >> tests/tests.pro
	echo 'INSTALLS =' >> example/example.pro
}

build() {
	qmake-qt5 \
		PREFIX=/usr \
		LIBDIR=/usr/lib
	CPPFLAGS="$CPPFLAGS -Wno-error" make
}

check() {
	make check
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="721cd514ee0a1175e3b1bbaa78dc1a87fd382327bcbee8356de040f04455f7cc80ed173e3f33a6acf4c0d679847063a25282e9d5c9a9be99f730bec41be96451  signon-plugin-oauth2-VERSION_0.25.tar.gz
76fc7dc6b3b735a399ed95f9243559bbda612ef1030a07bc0f8690aed67d3fe90e1995d4ee700dcd2cdfbc2068591a57e445a8810941b3cb6bb9b56b01eb0ab2  disable-werror.patch"