void-packages/srcpkgs/kbd/template

58 lines
1.6 KiB
Plaintext
Raw Normal View History

# Template file for 'kbd'
pkgname=kbd
2013-11-18 09:24:08 +01:00
version=2.0.1
revision=1
build_style=gnu-configure
configure_args="--datadir=/usr/share/kbd --localedir=/usr/share/kbd/locale"
2013-11-18 09:24:08 +01:00
hostmakedepends="automake libtool gettext-devel flex pkg-config"
makedepends="pam-devel libfl-devel"
short_desc="Linux keyboard utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-03-06 23:13:08 +01:00
license="GPL-2"
2013-11-18 09:24:08 +01:00
homepage="http://www.kbd-project.org/"
distfiles="http://www.kbd-project.org/download/kbd-${version}.tar.xz"
checksum=55407b79e90ee65cdbaff7d3dafd2b53c4fee3a645788ffb582091074a2254af
2012-12-19 16:10:11 +01:00
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
2013-11-18 09:24:08 +01:00
sed -e '/^PKG_CHECK_MODULES.*/d' -i configure.ac
sed -e 's,tests ,,g' -i Makefile.am
autoreconf -fi
2012-12-19 16:10:11 +01:00
}
2012-03-06 23:13:08 +01:00
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
}
2013-11-18 09:24:08 +01:00
kbd-data_package() {
short_desc+=" - keymaps, console fonts and unicode maps"
replaces="kbd<2.0.1_1"
noarch=yes
pkg_install() {
vmove usr/share/kbd/consolefonts
vmove usr/share/kbd/consoletrans
vmove usr/share/kbd/keymaps
vmove usr/share/kbd/unimaps
}
}
kbd_package() {
2013-11-18 09:24:08 +01:00
depends="kbd-data"
pkg_install() {
2013-11-18 09:24:08 +01:00
vmove all
}
}