Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.9 KiB

  1. # Maintainer: Pekka Helenius <fincer89 [at] hotmail [dot] com>
  2. _pkgname=kbd
  3. _pkgver=2.0.4
  4. pkgname=kbd-fi-nbsp
  5. pkgver=1
  6. pkgrel=1
  7. pkgdesc="Finnish keyboard layout without non-breaking space"
  8. arch=('any')
  9. url="http://www.kbd-project.org"
  10. license=('GPL')
  11. depends=('kbd')
  12. makedepends=('gzip' 'patch')
  13. source=(https://www.kernel.org/pub/linux/utils/${_pkgname}/${_pkgname}-${_pkgver}.tar.xz
  14. patch_fi-nbsp-removal_kbd.patch)
  15. prepare() {
  16. cd "${srcdir}/${_pkgname}-${_pkgver}"
  17. patch -Np1 -i ../patch_fi-nbsp-removal_kbd.patch
  18. }
  19. package() {
  20. gzip "${srcdir}/${_pkgname}-${_pkgver}"/data/keymaps/i386/qwerty/fi.map
  21. mkdir -p "$pkgdir"/usr/share/kbd/keymaps/i386/qwerty/
  22. install -Dm644 "${srcdir}/${_pkgname}-${_pkgver}"/data/keymaps/i386/qwerty/fi.map.gz "$pkgdir"/usr/share/kbd/keymaps/i386/qwerty/fi_nbsp.map.gz
  23. msg2 '
  24. Usage (systemd-dependent Linux systems):
  25. TTYs:
  26. 1) Run "sudo localectl set-keymap fi_nbsp"
  27. Settings are stored in /etc/vconsole.conf
  28. 2) Re-login and confirm changes by issuing "localectl" without arguments
  29. -------------
  30. X11:
  31. 1) Prefer "Finnish (classic)" layout in your DE settings
  32. 2) Add
  33. Alternative A) - Set classical layout:
  34. setxkbmap -layout "fi(fi)"
  35. Alternative B) - Override current keycode settings:
  36. xmodmap -e "keycode 65 = space space space space space space space"
  37. in your ~/.xinitrc file (single X desktop) or in your ~./.bashrc file (recommended).
  38. (Use different shell startup file if your shell env is not Bash)
  39. Using ~./.bashrc instead of ~/.xinitrc is recommended if you use multiple desktops and prefer
  40. launching them directly e.g. by issuing commands like "startkde" or "openbox-session".
  41. In addition, if you use "nvidia-xrun" on Nvidia Optimus laptop, use ~./.bashrc file.
  42. '
  43. }
  44. md5sums=('c1635a5a83b63aca7f97a3eab39ebaa6'
  45. 'c060f9a6ead46950671f9324dabb24a4')