summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b03d45d681d9ca4125320595bc5ee1a974b5c1b (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
36
37
38
39
40
41
42
43
# Maintainer: SeerLite <seerlite@tuta.io>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=xkeyboard-config-bbkt-git
pkgver=2.32.r5.gcadc98f5
pkgrel=1
pkgdesc="Upstream XKB configuration files patched with DreymaR's Big Bag mods (Colemak)"
arch=(any)
license=('custom')
url="https://github.com/SeerLite/xkeyboard-config-bbkt"
makedepends=('intltool' 'xorg-xkbcomp' 'libxslt' 'python' 'git' 'xorg-server-devel')
provides=('xkbdata' 'xkeyboard-config')
replaces=('xkbdata')
conflicts=('xkbdata' 'xkeyboard-config')
source=(git+https://github.com/SeerLite/xkeyboard-config-bbkt)
sha512sums=('SKIP')

pkgver() {
  cd xkeyboard-config-bbkt
  git describe --long | sed 's/^xkeyboard-config-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd xkeyboard-config-bbkt
  ./autogen.sh
  ./configure --prefix=/usr \
      --with-xkb-base=/usr/share/X11/xkb \
      --with-xkb-rules-symlink=xorg \
      --enable-compat-rules=yes
  make
 }
 
 package() { 
  cd xkeyboard-config-bbkt

  make DESTDIR="${pkgdir}" install
  rm -f "${pkgdir}/usr/share/X11/xkb/compiled"

  install -m755 -d "${pkgdir}/var/lib/xkb"
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}