desktop/signon-plugin-oauth2/PKGBUILD
2015-04-07 23:45:57 +00:00

36 lines
857 B
Bash

# Contribution from Arch: https://www.archlinux.org/packages/extra/x86_64/signon-plugin-oauth2/
pkgname=signon-plugin-oauth2
_pkgname=signon-oauth2
pkgver=0.21
pkgrel=1
pkgdesc='OAuth 2 plugin for signon'
arch=('x86_64')
url="https://gitlab.com/accounts-sso/signon-plugin-oauth2"
license=('LGPL')
depends=('signon')
makedepends=('qt5-xmlpatterns')
source=("http://rsync.chakraos.org/sources/${pkgname}/${_pkgname}-${pkgver}.tar.bz2")
md5sums=('086576e945e2272e138aead6ff533895')
prepare() {
cd ${_pkgname}-${pkgver}
sed -i '/-Werror/d' common-project-config.pri
# Do not install tests and example
echo 'INSTALLS =' >>tests/tests.pro
echo 'INSTALLS =' >>example/example.pro
}
build() {
cd ${_pkgname}-${pkgver}
qmake-qt5 PREFIX=/usr LIBDIR=/usr/lib
make
}
package() {
cd ${_pkgname}-${pkgver}
make INSTALL_ROOT="$pkgdir" install
}