CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
wget: disabled rpath. Thanks j_v
[crossrootfs.git] / kbd / Pkgfile
CommitLineData
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
7name=kbd
0ca3cfa6 8version=2.0.3
48c5606b 9release=1
6dca1d21
JB
10source=(ftp://ftp.altlinux.org/pub/people/legion/kbd/$name-$version.tar.gz)
11
12build() {
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
23ac_cv_func_setpgrp_void=yes
24ac_cv_func_malloc_0_nonnull=yes
25ac_cv_func_realloc_0_nonnull=yes
26EOF
27
28 ./configure --build=$CHOST \
29 --host=$CTARGET \
30 --prefix=/usr \
6dca1d21 31 --datadir=/usr/share/kbd \
8ddf4ca5 32 --disable-vlock \
6dca1d21
JB
33 --disable-nls \
34 --cache-file=config.cache
8ddf4ca5 35 make -j1
6dca1d21
JB
36 make DESTDIR=$PKG install
37
04d749b6 38 ln -sf default8x16.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz
6dca1d21
JB
39
40 rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun}
8ddf4ca5 41 rm $PKG/usr/bin/{loadunimap,mapscrn,psf*table}
0ca3cfa6
VM
42 rm $PKG/usr/share/man/man8/{loadunimap,mapscrn}.8
43 rm $PKG/usr/share/man/man1/psf*table.1
8ddf4ca5 44 find $PKG/usr/share/kbd/ -type f -name "README*" -delete
6dca1d21 45}