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 | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
6dca1d21 JB |
5 | # Depends on: |
6 | ||
7 | name=kbd | |
f6a054a1 | 8 | version=2.0.1 |
48c5606b | 9 | release=1 |
6dca1d21 JB |
10 | source=(ftp://ftp.altlinux.org/pub/people/legion/kbd/$name-$version.tar.gz) |
11 | ||
12 | build() { | |
13 | cd $name-$version | |
14 | ||
f6a054a1 VM |
15 | # we don't want a dependency to 'check' |
16 | sed -i '/^SUBDIR/s/tests//' Makefile.am | |
17 | sed -i '/\[check >= 0.9.4\]/s/^/#/' configure.ac | |
18 | autoreconf --install | |
19 | ||
42eaf3c2 | 20 | export CC="$CC" RANLIB="$RANLIB" |
6dca1d21 JB |
21 | |
22 | cat > config.cache <<EOF | |
23 | ac_cv_func_setpgrp_void=yes | |
24 | ac_cv_func_malloc_0_nonnull=yes | |
25 | ac_cv_func_realloc_0_nonnull=yes | |
26 | EOF | |
27 | ||
28 | ./configure --build=$CHOST \ | |
29 | --host=$CTARGET \ | |
30 | --prefix=/usr \ | |
31 | --mandir=/usr/man \ | |
32 | --datadir=/usr/share/kbd \ | |
8ddf4ca5 | 33 | --disable-vlock \ |
6dca1d21 JB |
34 | --disable-nls \ |
35 | --cache-file=config.cache | |
8ddf4ca5 | 36 | make -j1 |
6dca1d21 JB |
37 | make DESTDIR=$PKG install |
38 | ||
04d749b6 | 39 | ln -sf default8x16.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz |
6dca1d21 JB |
40 | |
41 | rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun} | |
8ddf4ca5 VM |
42 | rm $PKG/usr/bin/{loadunimap,mapscrn,psf*table} |
43 | rm $PKG/usr/man/man8/{loadunimap,mapscrn}.8 | |
44 | rm $PKG/usr/man/man1/psf*table.1 | |
45 | find $PKG/usr/share/kbd/ -type f -name "README*" -delete | |
6dca1d21 | 46 | } |