summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a4eb7e0a9194640ad457adfd99b8c994604a73d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Orestis Floros <orestisflo@gmail.com>
# Contributor: Doron Behar <doron.behar@gmail.com>
# Contributor: DeaDDooMER <deaddoomer@deadsoftware.ru>

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
}