summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c48a1f5bbeb1a98121d6a1039ddf05f0215baf2 (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: Jakub Wasylków <kuba_160@protonmail.com>
# Contributor: Justin Williams <justin@justinandyadi.com>

_pkgname=Workman
pkgname=workman-git
pkgver=r125.gec91fc3
pkgrel=1
pkgdesc="The Workman Keyboard Layout created by OJ Bucao."
url="https://workmanlayout.org/"
arch=('any')
license=('custom')
depends=()
source=("${_pkgname}::git+https://github.com/workman-layout/${_pkgname}")
sha256sums=('SKIP')

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

package() {
  cd ${srcdir}/${_pkgname}/xorg/
  install -Dm644 workman  ${pkgdir}/usr/share/X11/xkb/symbols/workman
  install -Dm644 workman-p  ${pkgdir}/usr/share/X11/xkb/symbols/workman-p

  cd ${srcdir}/${_pkgname}/linux_console/
  install -Dm644 workman.iso15.kmap ${pkgdir}/usr/share/kbd/keymaps/i386/workman/workman.map
  install -Dm644 workman-p.iso15.kmap ${pkgdir}/usr/share/kbd/keymaps/i386/workman/workman-p.map

  cd ${srcdir}/${_pkgname}/
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}