CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
kbd: fixed url and md5sum
[ports/core-arm.git] / kbd / Pkgfile
CommitLineData
9865558b
VM
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
fe1e2a07 5# Depends on:
9865558b
VM
6
7name=kbd
b71aaca2 8version=2.0.1
9865558b 9release=1
bed3c999 10source=(ftp://ftp.kernel.org/pub/linux/utils/$name/$name-$version.tar.xz)
9865558b
VM
11
12build() {
13 cd $name-$version
14
a8ee9af3
FR
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
9865558b
VM
20 ./configure --prefix=/usr \
21 --mandir=/usr/man \
22 --datadir=/usr/share/kbd \
7a2dc901 23 --disable-vlock \
9865558b
VM
24 --disable-nls
25 make
26 make DESTDIR=$PKG install
27
28 ln -sf default8x16.psfu.gz $PKG/usr/share/kbd/consolefonts/default.gz
29
30 rm -r $PKG/usr/share/kbd/keymaps/{ppc,mac,atari,amiga,sun}
31 rm $PKG/usr/bin/{loadunimap,mapscrn,psf*table}
32 rm $PKG/usr/man/man8/{loadunimap,mapscrn,resizecons}.8
33 rm $PKG/usr/man/man1/psf*table.1
34 find $PKG/usr/share/kbd/ -type f -name "README*" -delete
35}