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
4 # Arch Maintainer: CRUX ARM System Team, crux-arm at mikeux dot dyndns dot org
10 source=(ftp://ftp.altlinux.org/pub/people/legion/kbd/$name-$version.tar.gz)
15 export CC="$CC" RANLIB="$RANLIB"
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
23 ./configure --build=$CHOST \
27 --datadir=/usr/share/kbd \
29 --cache-file=config.cache
31 make DESTDIR=$PKG install
33 ln -sf default8x9.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz
35 rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun}
36 rm $PKG/usr/bin/{psfxtable,mapscrn,loadunimap} \
37 $PKG/usr/bin/{psfaddtable,psfgettable,psfstriptable} \
38 $PKG/usr/man/man1/{psfaddtable.1,psfgettable.1,psfstriptable.1,psfxtable.1} \
39 $PKG/usr/man/man8/{loadunimap.8,resizecons.8,mapscrn.8}
40 find $PKG/usr/share/kbd/ -name "README*" -exec rm {} \;