Package Details: xkb-qwerty-fr 0.5-3

Git Clone URL: https://aur.archlinux.org/xkb-qwerty-fr.git (read-only)
Package Base: xkb-qwerty-fr
Description: French qwerty keymap - provides a keymap for French users of qwerty keyboards. All French characters are directly accessible with AltGr and smartly mapped.
Upstream URL: http://marin.jb.free.fr/qwerty-fr/
Keywords: azerty fr keyboard layout qwerty xkb
Licenses: GPL2
Submitter: Niluge_KiWi
Maintainer: Niluge_KiWi (Schnouki)
Last Packager: Schnouki
Votes: 4
Popularity: 0.319634
First Submitted: 2016-03-13 14:14
Last Updated: 2019-09-03 08:48

Latest Comments

1 2 Next › Last »

Niluge_KiWi commented on 2019-09-03 19:53

I find it OK to put it in /usr/share/libalpm/scripts and call it there from the install file; that's what us_da-layout does, and it helps normalizing packages too !

Also, us_da-layout has an exta

pre_upgrade() {
    pre_remove
}

which may be useful to us: we install again on post_upgrade, but do not clean before.

Schnouki commented on 2019-09-03 19:18

I wondered about the location for those scripts too. But since they are also called by the install file, it seemed weird to me to put them in /usr/share/libalpm/scripts.

How would you feel about /usr/share/xkb-qwerty-fr?

Niluge_KiWi commented on 2019-09-03 19:10

@Schnouki thanks for your work !

The us_da-layout package is indeed inspiring. It has the advantage of not patching /usr/share/X11/xkb/symbols/us but our upstream .deb postinst/postrm handle it well anyway it seems.

One little suggestion: maybe put our scripts in /usr/share/libalpm/scripts/ like us_da-layout does instead of /usr/bin? I have not read the libalpm doc around that though...

Schnouki commented on 2019-09-03 08:51

Done!

  • The layout is correctly installed on package install/upgrade without needing any manual intervention
  • It's correctly removed on package uninstall
  • If xkeyboard-config is upgraded, the qwerty-fr layout is reinstalled using a Pacman hook.

Any feedback is welcome :)

Schnouki commented on 2019-09-03 08:12

Thanks @Niluge_KiWi, just got back from vacation, will update the package.

There's an uninstall script in the .deb so we can use that as well. I'm a little worried about updates to the files patched by the install script though. But there's an excellent idea in the 'us_da-layout' package: to use a Pacman hook to reapply the patch as needed :) I'll check if we can do the same here.

Thanks for making me a maintainer!

Niluge_KiWi commented on 2019-08-22 11:21

@Schnouki I am not sure it's the right way to go when the the automatic install: what about uninstall? We should check other keyboard layouts packages..

Niluge_KiWi commented on 2019-08-20 21:15

@Schnouki here you go ! Thanks for helping maintaining this !

Thanks to @plesur too.

I will still have to dig into @TheArcher solution with localectl: maybe it can avoid the ugly patch in the .deb postinstall ...

Schnouki commented on 2019-08-20 21:06

@plesur Thanks a lot for your patch, it works very well :)

To improve it further: - in the .install file, add a post_upgrade function that calls post_install - add 'perl' to the depends array

@Niluge_KiWi, would you mind merging this patch? Or just add me as a maintainer and I'll do it :) Thanks!

plesur commented on 2017-12-05 23:10

Ok so I fixed the package by installing the postinst script from the .deb package into /usr/bin/, and by calling it in the post_install script in arch. If there's any xkb update you'll have to reinstall the package (as before)

Since the package is likely never gonna be updated by its original creator, shouldn't we move the source in the repo itself (as to avoid downloading it over http) ?

Here's the diff for my fix:

diff --git a/PKGBUILD b/PKGBUILD
index 921438c..acac9ff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,11 +21,14 @@ build() {
   ar -xv ${pkgname}_${pkgver}_all.deb

   tar xvf data.tar.gz
+  tar xvf control.tar.gz
 }

 package() {
   cd "$srcdir"

+  install -D -m 744 postinst ${pkgdir}/usr/bin/qwerty-fr.install
+
   install -D -m 644 usr/share/X11/xkb/symbols/us_qwerty-fr ${pkgdir}/usr/share/X11/xkb/symbols/us_qwerty-fr

   install -D -m 644 usr/share/doc/xkb-qwerty-fr/changelog.gz ${pkgdir}/usr/share/doc/xkb-qwerty-fr/changelog.gz
diff --git a/xkb-qwerty-fr.install b/xkb-qwerty-fr.install
index 6ceafc3..f506b87 100644
--- a/xkb-qwerty-fr.install
+++ b/xkb-qwerty-fr.install
@@ -1,5 +1,3 @@
 post_install() {
-   cat << EOF
-==> See http://marin.jb.free.fr/qwerty-fr/manual/ to complete xkb-qwerty-fr installation
-EOF
+   /usr/bin/qwerty-fr.install triggered
 }

TheArcher commented on 2017-03-19 11:38

Here's how I got it working for Arch:
I intalled this package using Yaourt. Nothing changed. After some digging, I ran "setxkbmap us_qwerty-fr" and it worked. When I rebooted however, it stopped working. It appeared I had to run the command every time. That wasn't practical. After some more digging, I ran this command "localectl set-x11-keymap us_qwerty-fr", and it worked for real this time. Hope this helps someone.