summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a4ecabacc1df05217fa453e016ec24116aa8171 (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
34
35
# Maintainer: justbrowsing <developer4linux+aur@gmail.com>
pkgname=jbxkb
pkgver=0.7
pkgrel=2
pkgdesc="A pygtk keyboard layout switcher tray applet (inspired by gxkb) for JustBrowsing"
arch=('any')
url="https://github.com/justbrowsing/jbxkb"
license=('GPL3')
depends=('python2' 'pygtk' 'procps-ng' 'xorg-setxkbmap' 'xkb-switch-git')
optdepends=('ibus-lite: Special input methods without python3 dependency' 
			'ibus-m17n: Variety pack of input methods' 
			'ibus-pinyin: Popular Chinese input method'
			'ibus-skk: Popular Japanese input method')
groups=("justbrowsing")
source=("https://github.com/justbrowsing/jbxkb/archive/master.tar.gz")
md5sums=('8c4577a24576e31d7fa98ac6672a7fc6')

package() {
  cd "$srcdir/${pkgname}-master"

  # Install flag icons
  install -d "$pkgdir/usr/share/jbxkb"
  cp -a usr/share/jbxkb/*png "$pkgdir/usr/share/jbxkb"

  # Desktop launcher
  install -Dm644 "jbxkb.png" "$pkgdir/usr/share/pixmaps/jbxkb.png"
  install -Dm644 "jbxkb.desktop" "$pkgdir/usr/share/applications/jbxkb.desktop"
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/jbxkb/LICENSE

  # Executable
  install -Dm555 jbxkb  "$pkgdir/usr/bin/jbxkb"
  chmod +x "$pkgdir/usr/bin/jbxkb"
}