python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / kbd / template
blob8d8a0617df31a6c59a8d899c4d3056d359aac042
1 # Template file for 'kbd'
2 pkgname=kbd
3 version=2.0.4
4 revision=1
5 build_style=gnu-configure
6 configure_args="--datadir=/usr/share/kbd --localedir=/usr/share/kbd/locale"
7 hostmakedepends="automake libtool gettext-devel flex pkg-config"
8 makedepends="pam-devel"
9 depends="kbd-data"
10 short_desc="Linux keyboard utilities"
11 maintainer="Juan RP <xtraeme@voidlinux.eu>"
12 license="GPL-2"
13 homepage="http://www.kbd-project.org/"
14 distfiles="${KERNEL_SITE}/utils/${pkgname}/${pkgname}-${version}.tar.xz"
15 checksum=5fd90af6beb225a9bb9b9fb414c090fba53c9a55793e172f508cd43652e59a88
17 pre_configure() {
18         # Rename keymap files with the same names
19         # this is needed because when only name of keymap is specified
20         # oadkeys loads the first keymap it can find, which is bad
21         # this should be removed when upstream adopts the change
22         mv data/keymaps/i386/qwertz/cz{,-qwertz}.map
23         mv data/keymaps/i386/olpc/es{,-olpc}.map
24         mv data/keymaps/i386/olpc/pt{,-olpc}.map
25         mv data/keymaps/i386/dvorak/no{,-dvorak}.map
26         mv data/keymaps/i386/fgGIod/trf{,-fgGIod}.map
27         mv data/keymaps/i386/colemak/{en-latin9,colemak}.map
29         # fixes from fedora
30         # 7-bit maps are obsolete; so are non-euro maps
31         cd data/keymaps/i386
32         cp qwerty/pt-latin9.map qwerty/pt.map
33         cp qwerty/sv-latin1.map qwerty/se-latin1.map
35         mv azerty/fr.map azerty/fr-old.map
36         cp azerty/fr-latin9.map azerty/fr.map
38         cp azerty/fr-latin9.map azerty/fr-latin0.map # legacy alias
39         cd $wrksrc
41         sed -e '/^PKG_CHECK_MODULES.*/d' -i configure.ac
42         sed -e 's,tests ,,g' -i Makefile.am
44         $XBPS_FETCH_CMD http://git.alpinelinux.org/cgit/aports/plain/main/kbd/error.h
45         autoreconf -fi
47 post_install() {
48         # Remove keymaps for sun, amiga and atari.
49         for f in sun amiga atari; do
50                 rm -rf ${DESTDIR}/usr/share/kbd/keymaps/${f}
51         done
54 kbd-data_package() {
55         short_desc+=" - keymaps, console fonts and unicode maps"
56         replaces="kbd<2.0.1_1"
57         noarch=yes
58         pkg_install() {
59                 vmove usr/share/kbd/consolefonts
60                 vmove usr/share/kbd/consoletrans
61                 vmove usr/share/kbd/keymaps
62                 vmove usr/share/kbd/unimaps
63         }