diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e62cc2ffdf7b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Johan Klokkhammer Helsing <johanhelsing@gmail.com> + +pkgname=wayland-log-reader-git +pkgver=0.20180629.17.c2430c9 +pkgrel=1 +pkgdesc="Application for navigating and making sense of WAYLAND_DEBUG log output" +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +url='https://github.com/johanhelsing/wayland-log-reader' +license=('GPL3') +depends=('qt5-base' 'qt5-quickcontrols2') +makedepends=('git' 'qbs') + +_gitroot="git://github.com/johanhelsing/wayland-log-reader.git" +_gitbranch=master +_gitname=$pkgname +source=("${_gitname}::${_gitroot}#branch=${_gitbranch}") +md5sums=('SKIP') + +pkgver() { + cd ${srcdir}/${_gitname} + echo "0.$(git log -1 --format="%cd" --date=short | tr -d '-').$(git rev-list --count HEAD).$(git log -1 --format="%h")" +} + +build() { + cd ${srcdir}/${_gitname} + qbs setup-toolchains --type gcc /usr/bin/g++ gcc + qbs setup-qt /usr/bin/qmake-qt5 qt5 + qbs config profiles.qt5.baseProfile gcc + qbs build --no-install -d build profile:qt5 +} + +package() { + cd ${srcdir}/${_gitname} + qbs install -d build --no-build --install-root $pkgdir -v profile:qt5 +} |