summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 855c4e1b23ee421543641f4211dc85ca6d0ebd70 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: Raymond Wanyoike <raymond[dot]wanyoike[at]gmail[dot]com>
# Maintainer: Bryan Hyshka <bryan[at]hyshka[dot]com>

_gitauthor=galliumos
_gitname=xkeyboard-config

pkgname="galliumos-${_gitname}"
pkgver="2.23"
pkgrel=1
pkgdesc="X keyboard configuration files"
arch=("any")
license=("custom")
url="https://www.freedesktop.org/wiki/Software/XKeyboardConfig"
makedepends=("git" "intltool" "xorg-xkbcomp" "libxslt" "xorg-util-macros")
provides=("${_gitname}" "xkbdata")
conflicts=("${_gitname}" "xkbdata")
source=(
  https://xorg.freedesktop.org/archive/individual/data/${_gitname}/${_gitname}-${pkgver}.tar.bz2{,.sig}
  "git+https://github.com/${_gitauthor}/${_gitname}.git")
sha256sums=('23fb410527e9da38d8bbf8b9e6bd1a8eb2b2fdb514b8a0889c245cbad2d5a9b3'
            'SKIP'
            'SKIP')
validpgpkeys=("FFB4CCD275AAA422F5F9808E0661D98FC933A145")

prepare() {
  cd "${_gitname}-${pkgver}"

  # echo 'Adding GalliumOS Chromebook patch...'
  patch -p1 < "${srcdir}/${_gitname}/debian/patches/chromebook.patch"
}

build() {
  cd "${_gitname}-${pkgver}"

  # fix automake version mismatch and issue with libtoolize
  autoreconf -vif
  intltoolize --automake --force

  ./configure --prefix=/usr \
      --with-xkb-base=/usr/share/X11/xkb \
      --with-xkb-rules-symlink=xorg \
      --enable-compat-rules=yes

  make
}

package() {
  cd "${_gitname}-${pkgver}"

  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/${_gitname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${_gitname}"
}