summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5c40265add040bb32912e0f2c3fab430c654f81 (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
# vim: set ts=2 sw=2 et:
# Maintainer: Patrick Wicki <patrick.wicki96gmail.com>

pkgname=mwb-layout
pkgver=r24.244ca13
pkgrel=2
pkgdesc='Optimized keyboard layout, based on programmer dvorak and with a 3rd layer'
arch=(any)
url="https://github.com/MatteoWickiBande/mwb-layout"
source=("git+$url.git")
license=(GPL3)
depends=(git)
optdepends=('xcape: swap for swapping CAPS with escape')
md5sums=('SKIP')
install='mwb-layout.install'

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$pkgname"
  gzip -c mwb.map > mwb.map.gz
  install -Dm 644 mwb.map.gz "$pkgdir/usr/share/kbd/keymaps/i386/dvorak/mwb.map.gz"
  install -Dm 644 mwb "$pkgdir/usr/share/X11/xkb/symbols/mwb"
}