# Maintainer: Ellis Kenyo <elken at member dot fsf dot org>
pkgname=projectascension-git
pkgver=r39abb56.157
pkgrel=1
pkgdesc="Community-driven open source gaming client"
arch=('any')
url="http://www.projectascension.io"
license=('MIT')
depends=('cmake' 'boost' 'ninja' 'qt5-base' 'qt5-declarative' 'qt5-webkit')
makedepends=('git') 
install=
source=('projectascension::git+https://www.github.com/Proj-Ascension/Client')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
        printf "r%s.%s" "$(git rev-parse --short HEAD)" "$(git rev-list --count HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
        cmake . -G "Ninja"
        ninja
}

package() {
	cd "$srcdir/${pkgname%-git}"
       install -Dm755 ProjectAscension ${pkgdir}/usr/bin/ProjectAscension
}