# Maintainer: Orestis Floros # Contributor: Doron Behar # Contributor: DeaDDooMER pkgname=xkb-switch-git pkgver=1.8.5.r10.g2687564 pkgrel=1 pkgdesc='Program that allows to query and change the XKB layout state' arch=('i686' 'x86_64') url='https://github.com/grwlf/xkb-switch' license=('MIT') depends=('libx11' 'libxkbfile') provides=("xkb-switch=$pkgver") conflicts=('xkb-switch') makedepends=('git' 'cmake') source=('git+https://github.com/grwlf/xkb-switch') sha1sums=('SKIP') pkgver() { cd xkb-switch git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd xkb-switch cmake -DCMAKE_INSTALL_PREFIX=/usr . make } package() { cd xkb-switch make DESTDIR="$pkgdir/" install }