2008-10-25 03:04:19 +00:00
|
|
|
# Template file for 'kbd'
|
|
|
|
pkgname=kbd
|
2014-07-31 14:32:45 +00:00
|
|
|
version=2.0.2
|
2015-03-18 08:10:43 +00:00
|
|
|
revision=4
|
2015-03-04 18:44:01 +00:00
|
|
|
build_pie=yes
|
2013-02-11 12:42:18 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--datadir=/usr/share/kbd --localedir=/usr/share/kbd/locale"
|
2013-11-18 08:24:08 +00:00
|
|
|
hostmakedepends="automake libtool gettext-devel flex pkg-config"
|
2014-07-31 14:32:45 +00:00
|
|
|
makedepends="pam-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="kbd-data"
|
2008-10-25 03:04:19 +00:00
|
|
|
short_desc="Linux keyboard utilities"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-03-06 22:13:08 +00:00
|
|
|
license="GPL-2"
|
2013-11-18 08:24:08 +00:00
|
|
|
homepage="http://www.kbd-project.org/"
|
|
|
|
distfiles="http://www.kbd-project.org/download/kbd-${version}.tar.xz"
|
2014-07-31 14:32:45 +00:00
|
|
|
checksum=9dfddabf96012e329c4bebb96a21aeef7c3872f624e96e8156ba542b82aeb912
|
2013-04-12 15:12:12 +00:00
|
|
|
|
2012-12-19 15:10:11 +00: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 08:24:08 +00:00
|
|
|
|
2014-09-20 18:59:45 +00:00
|
|
|
# fixes from fedora
|
|
|
|
# 7-bit maps are obsolete; so are non-euro maps
|
|
|
|
cd data/keymaps/i386
|
|
|
|
cp qwerty/pt-latin9.map qwerty/pt.map
|
|
|
|
cp qwerty/sv-latin1.map qwerty/se-latin1.map
|
|
|
|
|
|
|
|
mv azerty/fr.map azerty/fr-old.map
|
|
|
|
cp azerty/fr-latin9.map azerty/fr.map
|
|
|
|
|
|
|
|
cp azerty/fr-latin9.map azerty/fr-latin0.map # legacy alias
|
|
|
|
cd $wrksrc
|
|
|
|
|
2013-11-18 08:24:08 +00:00
|
|
|
sed -e '/^PKG_CHECK_MODULES.*/d' -i configure.ac
|
|
|
|
sed -e 's,tests ,,g' -i Makefile.am
|
2014-09-20 18:59:45 +00:00
|
|
|
|
|
|
|
$XBPS_FETCH_CMD http://git.alpinelinux.org/cgit/aports/plain/main/kbd/error.h
|
2013-11-18 08:24:08 +00:00
|
|
|
autoreconf -fi
|
2012-12-19 15:10:11 +00:00
|
|
|
}
|
2012-03-06 22:13:08 +00:00
|
|
|
post_install() {
|
2012-11-22 16:29:14 +00: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-19 23:28:07 +00:00
|
|
|
}
|
2013-04-12 15:12:12 +00:00
|
|
|
|
2013-11-18 08:24:08 +00: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
|
|
|
|
}
|
|
|
|
}
|