Skip to content

Instantly share code, notes, and snippets.

@skipperTux
Created March 17, 2014 17:37
Show Gist options
  • Save skipperTux/9604272 to your computer and use it in GitHub Desktop.
Save skipperTux/9604272 to your computer and use it in GitHub Desktop.
xkeyboard-config.PKGBUILD
From 893778643bafc0377de5745117b43d843cd6cca9 Mon Sep 17 00:00:00 2001
From: Christoph Roeper <cr@roeper.biz>
Date: Tue, 4 Feb 2014 18:13:15 +0100
Subject: [PATCH] EurKEY keyboard layout
---
rules/base.extras.xml.in | 27 ++++++++++++++++++++
rules/evdev.extras.xml.in | 27 ++++++++++++++++++++
symbols/Makefile.am | 2 +-
symbols/Makefile.in | 2 +-
symbols/eu | 63 +++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 119 insertions(+), 2 deletions(-)
create mode 100644 symbols/eu
diff --git a/rules/base.extras.xml.in b/rules/base.extras.xml.in
index dd3251b..e6999e5 100644
--- a/rules/base.extras.xml.in
+++ b/rules/base.extras.xml.in
@@ -776,6 +776,33 @@
</variant>
</variantList>
</layout>
+ <layout>
+ <configItem>
+ <name>eu</name>
+ <!-- Keyboard indicator for European layouts -->
+ <_shortDescription>eu</_shortDescription>
+ <_description>EurKEY (US based layout with european letters)</_description>
+ <languageList>
+ <iso639Id>cat</iso639Id>
+ <iso639Id>dan</iso639Id>
+ <iso639Id>eng</iso639Id>
+ <iso639Id>est</iso639Id>
+ <iso639Id>fao</iso639Id>
+ <iso639Id>fin</iso639Id>
+ <iso639Id>ger</iso639Id>
+ <iso639Id>gre</iso639Id>
+ <iso639Id>gsw</iso639Id>
+ <iso639Id>ita</iso639Id>
+ <iso639Id>lav</iso639Id>
+ <iso639Id>lit</iso639Id>
+ <iso639Id>nld</iso639Id>
+ <iso639Id>nor</iso639Id>
+ <iso639Id>por</iso639Id>
+ <iso639Id>spa</iso639Id>
+ <iso639Id>swe</iso639Id>
+ </languageList>
+ </configItem>
+ </layout>
</layoutList>
<optionList/>
</xkbConfigRegistry>
diff --git a/rules/evdev.extras.xml.in b/rules/evdev.extras.xml.in
index dd3251b..e6999e5 100644
--- a/rules/evdev.extras.xml.in
+++ b/rules/evdev.extras.xml.in
@@ -776,6 +776,33 @@
</variant>
</variantList>
</layout>
+ <layout>
+ <configItem>
+ <name>eu</name>
+ <!-- Keyboard indicator for European layouts -->
+ <_shortDescription>eu</_shortDescription>
+ <_description>EurKEY (US based layout with european letters)</_description>
+ <languageList>
+ <iso639Id>cat</iso639Id>
+ <iso639Id>dan</iso639Id>
+ <iso639Id>eng</iso639Id>
+ <iso639Id>est</iso639Id>
+ <iso639Id>fao</iso639Id>
+ <iso639Id>fin</iso639Id>
+ <iso639Id>ger</iso639Id>
+ <iso639Id>gre</iso639Id>
+ <iso639Id>gsw</iso639Id>
+ <iso639Id>ita</iso639Id>
+ <iso639Id>lav</iso639Id>
+ <iso639Id>lit</iso639Id>
+ <iso639Id>nld</iso639Id>
+ <iso639Id>nor</iso639Id>
+ <iso639Id>por</iso639Id>
+ <iso639Id>spa</iso639Id>
+ <iso639Id>swe</iso639Id>
+ </languageList>
+ </configItem>
+ </layout>
</layoutList>
<optionList/>
</xkbConfigRegistry>
diff --git a/symbols/Makefile.am b/symbols/Makefile.am
index 509a549..ff7bdd4 100644
--- a/symbols/Makefile.am
+++ b/symbols/Makefile.am
@@ -34,6 +34,6 @@ tj tm tr tw tz \
ua us uz vn \
za \
altwin capslock compose ctrl empty eurosign rupeesign group inet \
-keypad kpdl level3 level5 nbsp olpc shift srvr_ctrl typo
+keypad kpdl level3 level5 nbsp olpc shift srvr_ctrl typo eu
EXTRA_DIST = $(symbols_DATA)
diff --git a/symbols/Makefile.in b/symbols/Makefile.in
index 2b6c128..ccff033 100644
--- a/symbols/Makefile.in
+++ b/symbols/Makefile.in
@@ -386,7 +386,7 @@ tj tm tr tw tz \
ua us uz vn \
za \
altwin capslock compose ctrl empty eurosign rupeesign group inet \
-keypad kpdl level3 level5 nbsp olpc shift srvr_ctrl typo
+keypad kpdl level3 level5 nbsp olpc shift srvr_ctrl typo eu
EXTRA_DIST = $(symbols_DATA)
all: all-recursive
diff --git a/symbols/eu b/symbols/eu
new file mode 100644
index 0000000..e3838a5
--- /dev/null
+++ b/symbols/eu
@@ -0,0 +1,63 @@
+// Based on <http://eurkey.steffen.bruentjen.eu/>
+// Copyright: Copyright 2012 Steffen Bruentjen (eurkey (at) steffen dot bruentjen dot de)
+// License: GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
+// modified by Christoph Roeper <spam (at) roeper dot biz> (use firstName to mail)
+
+default partial alphanumeric_keys modifier_keys
+xkb_symbols "basic" {
+
+ name[Group1] = "EurKEY (US based layout with european letters)";
+
+ include "us(basic)"
+
+ key <AB01> { [ z, Z, agrave, Agrave ] };
+ key <AB02> { [ x, X, aacute, Aacute ] };
+ key <AB03> { [ c, C, ccedilla, Ccedilla ] };
+ key <AB04> { [ v, V, igrave, Igrave ] };
+ key <AB05> { [ b, B, iacute, Iacute ] };
+ key <AB06> { [ n, N, ntilde, Ntilde ] };
+ key <AB07> { [ m, M, Multi_key, Multi_key ] };
+ key <AB08> { [ comma, less, ograve, Ograve ] };
+ key <AB09> { [ period, greater, oacute, Oacute ] };
+ key <AB10> { [ slash, question, questiondown, 0x1002026 ] };
+ key <AC01> { [ a, A, adiaeresis, Adiaeresis ] };
+ key <AC02> { [ s, S, ssharp, section ] };
+ key <AC03> { [ d, D, eth, Eth ] };
+ key <AC04> { [ f, F, egrave, Egrave ] };
+ key <AC05> { [ g, G, eacute, Eacute ] };
+ key <AC06> { [ h, H, ugrave, Ugrave ] };
+ key <AC07> { [ j, J, uacute, Uacute ] };
+ key <AC08> { [ k, K, U0133, U0132 ] };
+ key <AC09> { [ l, L, oslash, Oslash ] };
+ key <AC10> { [ semicolon, colon, dead_diaeresis, periodcentered ] };
+ key <AC11> { [ apostrophe, quotedbl, dead_acute, dagger] };
+ key <AD01> { [ q, Q, ae, AE ] };
+ key <AD02> { [ w, W, aring, Aring ] };
+ key <AD03> { [ e, E, ediaeresis, Ediaeresis ] };
+ key <AD04> { [ r, R, yacute, Yacute ] };
+ key <AD05> { [ t, T, thorn, Thorn ] };
+ key <AD06> { [ y, Y, ydiaeresis, Ydiaeresis ] };
+ key <AD07> { [ u, U, udiaeresis, Udiaeresis ] };
+ key <AD08> { [ i, I, idiaeresis, Idiaeresis ] };
+ key <AD09> { [ o, O, odiaeresis, Odiaeresis ] };
+ key <AD10> { [ p, P, oe, OE ] };
+ key <AD11> { [ bracketleft, braceleft, guillemotleft, U2039 ] };
+ key <AD12> { [ bracketright, braceright, guillemotright, U203A ] };
+ key <AE01> { [ 1, exclam, exclamdown, onesuperior ] };
+ key <AE02> { [ 2, at, ordfeminine, twosuperior ] };
+ key <AE03> { [ 3, numbersign, masculine, threesuperior ] };
+ key <AE04> { [ 4, dollar, sterling, yen ] };
+ key <AE05> { [ 5, percent, EuroSign, cent ] };
+ key <AE06> { [ 6, asciicircum, dead_circumflex, dead_caron ] };
+ key <AE07> { [ 7, ampersand, dead_abovering, dead_macron ] };
+ key <AE08> { [ 8, asterisk, doublelowquotemark, singlelowquotemark ] };
+ key <AE09> { [ 9, parenleft, leftdoublequotemark, leftsinglequotemark ] };
+ key <AE10> { [ 0, parenright, rightdoublequotemark, rightsinglequotemark ] };
+ key <AE11> { [ minus, underscore, copyright, numerosign ] };
+ key <AE12> { [ equal, plus, multiply, division ] };
+ key <BKSL> { [ backslash, bar, notsign, brokenbar ] };
+ key <TLDE> { [ grave, asciitilde, dead_grave, dead_tilde ] };
+ key <KPDL> { [ KP_Delete, KP_Decimal, comma, comma ] };
+
+ include "level3(ralt_switch)"
+};
--
1.8.5.3
# $Id$
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>
pkgname=xkeyboard-config
pkgver=2.11
pkgrel=2
pkgdesc="X keyboard configuration files"
arch=(any)
license=('custom')
url="http://www.freedesktop.org/wiki/Software/XKeyboardConfig"
makedepends=('intltool' 'xorg-xkbcomp')
provides=('xkbdata')
replaces=('xkbdata')
conflicts=('xkbdata')
source=(http://xorg.freedesktop.org/archive/individual/data/${pkgname}/${pkgname}-${pkgver}.tar.bz2
revert-comma-in-keypad.patch eurkey.patch)
sha256sums=('e7125460892c2b5c3a8d843cb18c24b60c46051e925c2888a61fa672a2f76d76'
'05b22863ddb1de64575b56714ebd693f2ea639b7a4ae15e25c9a1f0d14dba817'
'61efb7b8647910352a1465ac3d949437e086ce70727760253038a1ba51d7f4bb')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
# fix FS#38743 , not merged upstream
patch -Np1 -i../revert-comma-in-keypad.patch
patch -p1 < ${srcdir}/eurkey.patch
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr \
--with-xkb-base=/usr/share/X11/xkb \
--with-xkb-rules-symlink=xorg \
--enable-compat-rules=yes
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -f "${pkgdir}/usr/share/X11/xkb/compiled"
install -m755 -d "${pkgdir}/var/lib/xkb"
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment