# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/signon-ui pkgname=signon-ui pkgver=0.17+15.10.20150810 pkgrel=1 pkgdesc='UI component responsible for handling the user interactions which can happen during the login process of an online account' arch=(x86_64) url="https://launchpad.net/online-accounts-signon-ui" license=(GPL) depends=('libaccounts-qt' 'qt5-webkit' 'signon' 'libnotify') source=("http://archive.ubuntu.com/ubuntu/pool/main/s/$pkgname/${pkgname}_$pkgver.orig.tar.gz") md5sums=('560ea77014d0418c4899984486839da8') prepare() { cd $pkgname-$pkgver #add dummy implementation of onEmbedError because moc does not understand that it is commented out sed -i '84i void onEmbedError() {}' src/request.cpp # Do not install tests echo 'INSTALLS =' >>tests/unit/tst_inactivity_timer.pro echo 'INSTALLS =' >>tests/unit/tst_signon_ui.pro } build() { cd $pkgname-$pkgver qmake-qt5 PREFIX=/usr LIBDIR=/usr/lib make } package() { cd $pkgname-$pkgver make INSTALL_ROOT="$pkgdir" install }