summaryrefslogtreecommitdiffstats
path: root/kbd/Pkgfile
blob: 111faa5ad2883e6b0d6c722546d45ede34a9ab68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
description="Keytable files and keyboard utilities."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="ftp://ftp.win.tue.nl/pub/linux-local/utils/kbd/"
depends=()

name=kbd
version=1.15.2
release=1
source=(ftp://ftp.altlinux.org/pub/people/legion/$name/$name-$version.tar.gz)
build () 
{ 
	cd $name-$version;
	./configure \
		${CBUILD:+--build=${CBUILD}} \
		${CHOST:+--host=${CHOST}} \
		--prefix=$prefix \
		--mandir=$mandir \
		--datadir=$sharedir/kbd \
		$(use_enable nls);
	make;
	make DESTDIR=$PKG install;
	ln -sf default8x16.psfu.gz $PKG$prefix/share/kbd/consolefonts/default.gz;
	rm -f -r $PKG$prefix/share/kbd/keymaps/{ppc,mac,atari,amiga,sun};
	rm -f $PKG$prefix/bin/{loadunimap,mapscrn,resizecons,psf*table};
	rm -f $PKG$mandir/man8/{loadunimap,mapscrn,resizecons}.8;
	rm -f $PKG$mandir/man1/psf*table.1;
	find $PKG$prefix/share/kbd/ -type f -name "README*" -delete
}