void-packages/srcpkgs/kbd/template

40 lines
1.3 KiB
Plaintext

# Template file for 'kbd'
pkgname=kbd
version=1.15.5
revision=1
build_style=configure
configure_args="--prefix=/usr --datadir=/usr/share/kbd
--localedir=/usr/share/kbd/locale --mandir=/usr/share/man"
makedepends="flex pam-devel"
short_desc="Linux keyboard utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="ftp://ftp.altlinux.org/pub/people/legion/kbd/"
distfiles="${homepage}/kbd-${version}.tar.gz"
checksum=e35fa29f690dbbfb721706b2c8edc760c697640904fec65e81194ae8840c5c62
long_desc="
This package allows you to set up the Linux console, change the font,
resize text mode virtual consoles and remap the keyboard."
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
}
post_install() {
# Remove keymaps for sun, amiga and atari.
for f in sun amiga atari; do
rm -rf ${DESTDIR}/usr/share/kbd/keymaps/${f}
done
}