summaryrefslogtreecommitdiffstats
path: root/kbd/Pkgfile
blob: 7f866ad8947abacadec2fefa1e280ffb42d200dc (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
# Description: Contient table des touches clavier et utilitaire pour clavier
# URL: ftp://devel.altlinux.org/legion/kbd/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=kbd
version=1.15.3
release=3
source=(http://ftp.altlinux.com/pub/people/legion/kbd/kbd-$version.tar.gz
	http://www.linuxfromscratch.org/patches/lfs/development/kbd-1.15.3-backspace-1.patch
	http://www.linuxfromscratch.org/patches/lfs/development/kbd-1.15.3-upstream_fixes-1.patch
	fix-es-translation.patch)

build() {
	cd $name-$version
	patch -p1 < ../fix-es-translation.patch
	patch -p1 < ../kbd-1.15.3-backspace-1.patch
	patch -p1 < ../kbd-1.15.3-upstream_fixes-1.patch

	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--datadir=/lib/kbd
	make
	make DESTDIR=$PKG install
	mkdir -p $PKG/bin
	mv -v $PKG/usr/bin/{kbd_mode,openvt,setfont} $PKG/bin/ 
	ln -s /usr/bin/loadkeys $PKG/bin/loadkeys
}