# Maintainer: Pier Luigi Fiorini pkgname=qt5-accountsservice-git pkgver=20160918.c262a93 pkgrel=1 pkgdesc="Qt-style wrapper for Accounts Service" arch=('i686' 'x86_64' 'armv6h' 'armv7h') url='https://liri.io' license=('LGPL3') depends=('qt5-declarative') makedepends=('git' 'extra-cmake-modules') conflicts=('qtaccountsservice-git' 'qt5-accountsservice') replaces=('qtaccountsservice-git' 'qt5-accountsservice') provides=('qt5-accountsservice') groups=('liri-git') _gitroot="git://github.com/lirios/qtaccountsservice.git" _gitbranch=develop _gitname=qtaccountsservice source=(${_gitname}::${_gitroot}#branch=${_gitbranch}) md5sums=('SKIP') pkgver() { cd ${srcdir}/${_gitname} echo "$(git log -1 --format="%cd" --date=short | tr -d '-').$(git log -1 --format="%h")" } prepare() { mkdir -p build } build() { cd build cmake ../${_gitname} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DKDE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_LIBEXECDIR=lib make } package() { cd build make DESTDIR="${pkgdir}" install }