# Maintainer: Maxim Kurnosenko # Contributor: Jiachen Yang # Contributor: HÃ¥vard Pettersson # Contributor: Kevin MacMartin _pkgname=qtox pkgname=qtox-git pkgver=1.16.1.r32.ga12bb068d pkgrel=1 pkgdesc='Powerful Tox client written in C++/Qt that follows the Tox design guidelines.' arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') url='https://github.com/qTox/qTox' license=('GPL3') depends=('desktop-file-utils' 'libexif' 'libxss' 'openal' 'qrencode' 'gtk2' 'ffmpeg' 'qt5-svg' 'sqlcipher' 'toxcore') makedepends=('git' 'check' 'cmake' 'qt5-tools') provides=("$_pkgname") conflicts=("$_pkgname") source=("$_pkgname::git+$url.git") sha512sums=('SKIP') pkgver() { cd $_pkgname git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd $_pkgname install -d build } check() { cd $_pkgname/build make test } build() { cd $_pkgname/build cmake .. -DCMAKE_INSTALL_PREFIX="/usr" make $MAKEFLAGS } package() { cd $_pkgname/build make DESTDIR="$pkgdir" install }