# Maintainer: German Lashevich # Contributor: Orestis Floros # Contributor: Doron Behar _pkgname=xkb-switch-i3 pkgname=xkb-switch-i3-git pkgver=1.6.0.r7.g69fe11f pkgrel=1 pkgdesc='Program that allows to query and change the XKB layout state (with i3wm auto-switch mode)' conflicts=('xkb-switch') provides=('xkb-switch') arch=('i686' 'x86_64') url="https://github.com/zebradil/${_pkgname}" license=('GPL3') depends=('libx11' 'libxkbfile' 'i3-wm') makedepends=('git' 'cmake' 'libsigc++') source=( "git+https://github.com/zebradil/${_pkgname}.git#branch=master" "git+https://github.com/drmgc/i3ipcpp.git" ) sha1sums=( 'SKIP' 'SKIP' ) pkgver() { cd "${_pkgname}" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "${srcdir}/${_pkgname}" git submodule init git config "submodule.i3ipc++.url" "${srcdir}/i3ipcpp" git submodule update cmake -DCMAKE_INSTALL_PREFIX=/usr . make } package() { cd "${srcdir}/${_pkgname}" make DESTDIR="$pkgdir/" install }