CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
pkgutils: fixed CFLAGS used
[crossrootfs.git] / kbd / Pkgfile
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, devel at crux-arm dot nu
5 # Depends on:
6
7 name=kbd
8 version=1.15.5
9 release=1
10 source=(ftp://ftp.altlinux.org/pub/people/legion/kbd/$name-$version.tar.gz)
11
12 build() {
13 cd $name-$version
14
15 export CC="$CC" RANLIB="$RANLIB"
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-vlock \
29 --disable-nls \
30 --cache-file=config.cache
31 make -j1
32 make DESTDIR=$PKG install
33
34 ln -sf default8x16.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz
35
36 rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun}
37 rm $PKG/usr/bin/{loadunimap,mapscrn,psf*table}
38 rm $PKG/usr/man/man8/{loadunimap,mapscrn}.8
39 rm $PKG/usr/man/man1/psf*table.1
40 find $PKG/usr/share/kbd/ -type f -name "README*" -delete
41 }