summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/klibc-kbd/PKGBUILD
blob: 9b232ce4ffc5f36ff9a5cdd70b52c1a2f953f7ef (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
# $Id: PKGBUILD 23614 2009-01-11 14:10:20Z thomas $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=klibc-kbd
pkgver=1.15.20080312
pkgrel=30
pkgdesc="Keytable files and keyboard utilities"
arch=('i686' 'x86_64')
url="ftp://ftp.altlinux.org/pub/people/legion/kbd/"
license=('GPL')
groups=('base')
depends=('klibc' $(basename /lib/klibc-*.so .so) 'kbd')
source=(ftp://ftp.archlinux.org/other/kbd/kbd-$pkgver.tar.gz
        #ftp://ftp.altlinux.org/pub/people/legion/kbd/kbd-${pkgver}.tar.gz
        no-isatty.patch
        no-exit.patch
        no-fflush.patch
        keymap_install
        keymap_hook)
md5sums=('709b087bb9d6c073bade70eda2da7770'
         '53e9612ac5fc1b23601f793410742ed3'
         '8c1bec330e8c98355502ac861561667d'
         '8310d1a6cc72b5827898d0e9e29824ab'
         '735d7268f567deee4db3bed951a8303a'
         '85457e44dfd7046224e87f0add8da4b2')

build() {
  cd ${startdir}/src
  #cd ${startdir}/src/kbd-${pkgver}
  patch -Np1 -i no-isatty.patch || return 1
  patch -Np1 -i no-exit.patch || return 1
  patch -Np1 -i no-fflush.patch || return 1

  aclocal
  autoconf
  automake --add-missing
  ./configure --datadir=/share/kbd --enable-klibc

  cd src/
  make kbd_mode loadkeys setfont || return 1

  install -D loadkeys ${startdir}/pkg/lib/initcpio/kbd/loadkeys
  install -D kbd_mode ${startdir}/pkg/lib/initcpio/kbd/kbd_mode
  install -D setfont ${startdir}/pkg/lib/initcpio/kbd/setfont
  # install hook
  install -Dm644 ${startdir}/src/keymap_hook ${startdir}/pkg/lib/initcpio/hooks/keymap
  install -Dm644 ${startdir}/src/keymap_install ${startdir}/pkg/lib/initcpio/install/keymap
}