summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c4afdd388272108337fe3d1881ccb03968149ba9 (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
# Maintainer: Ivan Isekeev <ivanisekeev0@gmail.com>

pkgname=loloswitcher
pkgver=0.39
pkgrel=1
pkgdesc='The low level keyboard language switcher for X11'
arch=('i686' 'x86_64')
url='https://github.com/xintrea/LoLoSwitcher'
license=('GPL3' 'BSD')
depends=('libx11' 'pcre')
makedepends=('cmake')
source=("${pkgname}-${pkgver}.tar.xz::https://github.com/xintrea/LoLoSwitcher/archive/v.${pkgver}.tar.gz")
sha256sums=('8fd6219e4cd5b084d86e15a5cf92d650d54ab8ab0c9a0a9ca2189c534fc4959a')

build() {
  cd "LoLoSwitcher-v.${pkgver}"
  rm -rf build
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd "LoLoSwitcher-v.${pkgver}/build"
  install -Dm755 loloswitcher -t "${pkgdir}/usr/bin"
  install -Dm644 ../license_bsd.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et: