CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
pkg-config: updated to 0.29.2
[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
cf9c5333 8version=2.0.4
48c5606b 9release=1
cf9c5333 10source=(http://ftp.kernel.org/pub/linux/utils/$name/$name-$version.tar.xz)
6dca1d21
JB
11
12build() {
13 cd $name-$version
14
42eaf3c2 15 export CC="$CC" RANLIB="$RANLIB"
6dca1d21
JB
16
17 cat > config.cache <<EOF
18ac_cv_func_setpgrp_void=yes
19ac_cv_func_malloc_0_nonnull=yes
20ac_cv_func_realloc_0_nonnull=yes
21EOF
22
23 ./configure --build=$CHOST \
24 --host=$CTARGET \
25 --prefix=/usr \
6dca1d21 26 --datadir=/usr/share/kbd \
8ddf4ca5 27 --disable-vlock \
6dca1d21
JB
28 --disable-nls \
29 --cache-file=config.cache
8ddf4ca5 30 make -j1
6dca1d21
JB
31 make DESTDIR=$PKG install
32
04d749b6 33 ln -sf default8x16.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz
6dca1d21
JB
34
35 rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun}
8ddf4ca5 36 rm $PKG/usr/bin/{loadunimap,mapscrn,psf*table}
0ca3cfa6
VM
37 rm $PKG/usr/share/man/man8/{loadunimap,mapscrn}.8
38 rm $PKG/usr/share/man/man1/psf*table.1
8ddf4ca5 39 find $PKG/usr/share/kbd/ -type f -name "README*" -delete
6dca1d21 40}