Advertisement
schreiberstein

xorg-lang

Oct 8th, 2011
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.42 KB | None | 0 0
  1.  
  2. # Global configuration :
  3. pkgname=('xorg-lang-de' 'xorg-lang-ch' 'xorg-lang-en' 'xorg-lang-fr' 'xorg-lang-nl' 'xorg-lang-es' 'xorg-lang-pl' 'xorg-lang-dk')
  4. pkgrel=1
  5. pkgver=0.5
  6. license="GPL"
  7. arch=('i686' 'x86_64')
  8. depends=('xorg-server')
  9. backup=(etc/X11/xorg.conf.d/20-keyboard.conf)
  10. provides=(xorg-lang)
  11. conflicts=(xorg-lang)
  12.  
  13. # Packages :
  14.  
  15. package_xorg-lang-de() {
  16.  
  17. pkgdesc="Deutsches Tastaturlayout für Xorg"
  18. mkdir $srcdir/$pkgname
  19.  
  20. cat > $srcdir/$pkgname/20-keyboard.conf<< "EOF"
  21. Section "InputClass"
  22.         Identifier "keyboard"
  23.         MatchIsKeyboard "yes"
  24.         Option "XkbLayout" "de"
  25.         Option "XkbVariant" "nodeadkeys"
  26. EndSection
  27. EOF
  28.  
  29. install -Dm644 $srcdir/$pkgname/20-keyboard.conf $pkgdir/etc/X11/xorg.conf.d/20-keyboard.conf
  30. }
  31.  
  32.  
  33. package_xorg-lang-ch() {
  34.  
  35. pkgdesc="Schweizer Tastaturlayout für Xorg"
  36. mkdir $srcdir/$pkgname
  37.  
  38. cat > $srcdir/$pkgname/20-keyboard.conf<< "EOF"
  39. Section "InputClass"
  40.         Identifier "keyboard"
  41.         MatchIsKeyboard "yes"
  42.         Option "XkbLayout" "ch"
  43.         Option "XkbVariant" "de"
  44. EndSection
  45. EOF
  46.  
  47. install -Dm644 $srcdir/$pkgname/20-keyboard.conf $pkgdir/etc/X11/xorg.conf.d/20-keyboard.conf
  48. }
  49.  
  50.  
  51. package_xorg-lang-en() {
  52.  
  53. pkgdesc="English (GB) keyboardlayout for Xorg"
  54.  
  55. mkdir $srcdir/$pkgname
  56.  
  57. cat > $srcdir/$pkgname/20-keyboard.conf<< "EOF"
  58. Section "InputClass"
  59.         Identifier "keyboard"
  60.         MatchIsKeyboard "yes"
  61.         Option "XkbLayout" "gb"
  62. EndSection
  63. EOF
  64.  
  65. install -Dm644 $srcdir/$pkgname/20-keyboard.conf $pkgdir/etc/X11/xorg.conf.d/20-keyboard.conf
  66. }
  67.  
  68.  
  69. package_xorg-lang-fr() {
  70.  
  71. mkdir $srcdir/$pkgname
  72. cat > $srcdir/$pkgname/20-keyboard.conf<< "EOF"
  73. Section "InputClass"
  74.         Identifier "keyboard"
  75.         MatchIsKeyboard "yes"
  76.         Option "XkbLayout" "fr"
  77. EndSection
  78. EOF
  79.  
  80. install -Dm644 $srcdir/$pkgname/20-keyboard.conf $pkgdir/etc/X11/xorg.conf.d/20-keyboard.conf
  81. }
  82.  
  83.  
  84. package_xorg-lang-nl() {
  85.  
  86. pkgdesc="Dutch keyboardlayout for Xorg"
  87. mkdir $srcdir/$pkgname
  88. cat > $srcdir/$pkgname/20-keyboard.conf<< "EOF"
  89. Section "InputClass"
  90.         Identifier "keyboard"
  91.         MatchIsKeyboard "yes"
  92.         Option "XkbLayout" "nl"
  93. EndSection
  94. EOF
  95.  
  96. install -Dm644 $srcdir/$pkgname/20-keyboard.conf $pkgdir/etc/X11/xorg.conf.d/20-keyboard.conf
  97. }
  98.  
  99.  
  100. package_xorg-lang-es() {
  101.  
  102. pkgdesc="Spanish keyboardlayout for Xorg"
  103. mkdir $srcdir/$pkgname
  104. cat > $srcdir/$pkgname/20-keyboard.conf<< "EOF"
  105. Section "InputClass"
  106.         Identifier "keyboard"
  107.         MatchIsKeyboard "yes"
  108.         Option "XkbLayout" "es"
  109. EndSection
  110. EOF
  111.  
  112. install -Dm644 $srcdir/$pkgname/20-keyboard.conf $pkgdir/etc/X11/xorg.conf.d/20-keyboard.conf
  113. }
  114.  
  115.  
  116. package_xorg-lang-pl() {
  117.  
  118. pkgdesc="Polish keyboardlayout for Xorg"
  119. mkdir $srcdir/$pkgname
  120. cat > $srcdir/$pkgname/20-keyboard.conf<< "EOF"
  121. Section "InputClass"
  122.         Identifier "keyboard"
  123.         MatchIsKeyboard "yes"
  124.         Option "XkbLayout" "pl"
  125. EndSection
  126. EOF
  127.  
  128. install -Dm644 $srcdir/$pkgname/20-keyboard.conf $pkgdir/etc/X11/xorg.conf.d/20-keyboard.conf
  129. }
  130.  
  131.  
  132. package_xorg-lang-dk() {
  133.  
  134. pkgdesc="Danish keyboardlayout for Xorg"
  135. mkdir $srcdir/$pkgname
  136.  
  137. cat > $srcdir/$pkgname/20-keyboard.conf<< "EOF"
  138. Section "InputClass"
  139.         Identifier "keyboard"
  140.         MatchIsKeyboard "yes"
  141.         Option "XkbLayout" "dk"
  142.         Option "XkbVariant" "nodeadkeys"
  143. EndSection
  144. EOF
  145.  
  146. install -Dm644 $srcdir/$pkgname/20-keyboard.conf $pkgdir/etc/X11/xorg.conf.d/20-keyboard.conf
  147. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement