summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 905f9eb116ee92fb97d19fcf5d2e3f8f02936f7e (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
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=loloswitcher
pkgver=0.30
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=('068bc0efd3d39d38f5d4abb2a4858fa132f14482f81b8e940ae6781285dd1d76')

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: