2008-10-25 05:04:19 +02:00
|
|
|
# Template file for 'kbd'
|
|
|
|
pkgname=kbd
|
2012-12-19 16:10:11 +01:00
|
|
|
version=1.15.5
|
|
|
|
revision=1
|
2008-10-25 05:04:19 +02:00
|
|
|
build_style=configure
|
2012-03-06 23:13:08 +01:00
|
|
|
configure_args="--prefix=/usr --datadir=/usr/share/kbd
|
2012-11-22 17:29:14 +01:00
|
|
|
--localedir=/usr/share/kbd/locale --mandir=/usr/share/man"
|
2012-12-19 16:10:11 +01:00
|
|
|
makedepends="flex pam-devel"
|
2008-10-25 05:04:19 +02:00
|
|
|
short_desc="Linux keyboard utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-03-06 23:13:08 +01:00
|
|
|
license="GPL-2"
|
2012-11-22 17:29:14 +01:00
|
|
|
homepage="ftp://ftp.altlinux.org/pub/people/legion/kbd/"
|
2012-12-19 16:10:11 +01:00
|
|
|
distfiles="${homepage}/kbd-${version}.tar.gz"
|
|
|
|
checksum=e35fa29f690dbbfb721706b2c8edc760c697640904fec65e81194ae8840c5c62
|
2008-10-25 05:04:19 +02:00
|
|
|
long_desc="
|
2012-03-06 23:13:08 +01:00
|
|
|
This package allows you to set up the Linux console, change the font,
|
|
|
|
resize text mode virtual consoles and remap the keyboard."
|
2008-10-25 05:04:19 +02:00
|
|
|
|
2012-12-19 16:10:11 +01:00
|
|
|
replaces="kbd-common<1.15.5"
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
# Rename keymap files with the same names
|
|
|
|
# this is needed because when only name of keymap is specified
|
|
|
|
# oadkeys loads the first keymap it can find, which is bad
|
|
|
|
# this should be removed when upstream adopts the change
|
|
|
|
mv data/keymaps/i386/qwertz/cz{,-qwertz}.map
|
|
|
|
mv data/keymaps/i386/olpc/es{,-olpc}.map
|
|
|
|
mv data/keymaps/i386/olpc/pt{,-olpc}.map
|
|
|
|
mv data/keymaps/i386/dvorak/no{,-dvorak}.map
|
|
|
|
mv data/keymaps/i386/fgGIod/trf{,-fgGIod}.map
|
|
|
|
mv data/keymaps/i386/colemak/{en-latin9,colemak}.map
|
|
|
|
}
|
2009-10-20 01:28:07 +02:00
|
|
|
|
2012-03-06 23:13:08 +01:00
|
|
|
post_install() {
|
2012-11-22 17:29:14 +01:00
|
|
|
# Remove keymaps for sun, amiga and atari.
|
|
|
|
for f in sun amiga atari; do
|
|
|
|
rm -rf ${DESTDIR}/usr/share/kbd/keymaps/${f}
|
|
|
|
done
|
2009-10-20 01:28:07 +02:00
|
|
|
}
|