Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: Keytable files and keyboard utilities |
2 | # URL: ftp://ftp.win.tue.nl/pub/linux-local/utils/kbd/ | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
42eaf3c2 | 4 | # Arch Maintainer: CRUX ARM System Team, crux-arm at mikeux dot dyndns dot org |
6dca1d21 JB |
5 | # Depends on: |
6 | ||
7 | name=kbd | |
8 | version=1.15 | |
9 | release=2 | |
10 | source=(ftp://ftp.altlinux.org/pub/people/legion/kbd/$name-$version.tar.gz) | |
11 | ||
12 | build() { | |
13 | cd $name-$version | |
14 | ||
42eaf3c2 | 15 | export CC="$CC" RANLIB="$RANLIB" |
6dca1d21 JB |
16 | |
17 | cat > config.cache <<EOF | |
18 | ac_cv_func_setpgrp_void=yes | |
19 | ac_cv_func_malloc_0_nonnull=yes | |
20 | ac_cv_func_realloc_0_nonnull=yes | |
21 | EOF | |
22 | ||
23 | ./configure --build=$CHOST \ | |
24 | --host=$CTARGET \ | |
25 | --prefix=/usr \ | |
26 | --mandir=/usr/man \ | |
27 | --datadir=/usr/share/kbd \ | |
28 | --disable-nls \ | |
29 | --cache-file=config.cache | |
30 | make | |
31 | make DESTDIR=$PKG install | |
32 | ||
33 | install -d $PKG/bin | |
34 | mv $PKG/usr/bin/loadkeys $PKG/bin | |
35 | ||
36 | ln -sf default8x9.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz | |
37 | ||
38 | rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun} | |
39 | rm $PKG/usr/bin/{psfxtable,mapscrn,loadunimap} \ | |
40 | $PKG/usr/bin/{psfaddtable,psfgettable,psfstriptable} \ | |
41 | $PKG/usr/man/man1/{psfaddtable.1,psfgettable.1,psfstriptable.1,psfxtable.1} \ | |
42 | $PKG/usr/man/man8/{loadunimap.8,resizecons.8,mapscrn.8} | |
43 | find $PKG/usr/share/kbd/ -name "README*" -exec rm {} \; | |
44 | } |