Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for pikaur #276

Merged
merged 5 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions README-fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Fonctionnalités :
- Vérification automatique des mises à jour du noyau en attente nécessitant un redémarrage et propose de redémarrer s'il y en a une.
- Vérification automatique des services nécessitant un redémarrage après mise à jour et propose de les redémarrer s'il y en a.
- Support de `sudo`, `doas` et `run0`.
- Prise en charge optionnelle des paquets AUR (via `yay` ou `paru`).
- Prise en charge optionnelle des paquets AUR (via `paru`, `yay` ou `pikaur`).
- Prise en charge optionnelle des paquets Flatpak.
- Prise en charge optionnelle des notifications de bureau lors de nouvelles mises à jour disponibles.

Expand All @@ -55,12 +55,13 @@ sudo pacman -S --needed pacman-contrib archlinux-contrib curl fakeroot htmlq dif

Dépendances optionnelles supplémentaires dont vous pourriez avoir besoin ou que vous pourriez souhaiter :

- [yay](https://aur.archlinux.org/packages/yay): Support des paquets AUR
- [paru](https://aur.archlinux.org/packages/paru): Support des paquets AUR
- [flatpak](https://archlinux.org/packages/extra/x86_64/flatpak/): Support des paquets Flatpak
- [libnotify](https://archlinux.org/packages/extra/x86_64/libnotify/): Support des notifications de bureau lors de nouvelles mises à jour disponibles (voir <https://wiki.archlinux.org/title/Desktop_notifications>)
- [vim](https://archlinux.org/packages/extra/x86_64/vim/): Programme de fusion par défaut pour pacdiff
- [qt6-wayland](https://archlinux.org/packages/extra/x86_64/qt6-wayland/): Support de l'applet systray sur Wayland
- [paru](https://aur.archlinux.org/packages/paru) : Support des paquets AUR
- [yay](https://aur.archlinux.org/packages/yay) : Support des paquets AUR
- [pikaur](https://aur.archlinux.org/packages/pikaur) : Support des paquets AUR
- [flatpak](https://archlinux.org/packages/extra/x86_64/flatpak/) : Support des paquets Flatpak
- [libnotify](https://archlinux.org/packages/extra/x86_64/libnotify/) : Support des notifications de bureau lors de nouvelles mises à jour disponibles (voir <https://wiki.archlinux.org/title/Desktop_notifications>)
- [vim](https://archlinux.org/packages/extra/x86_64/vim/) : Programme de fusion par défaut pour pacdiff
- [qt6-wayland](https://archlinux.org/packages/extra/x86_64/qt6-wayland/) : Support de l'applet systray sur Wayland

Téléchargez l'archive de la [dernière version stable](https://github.com/Antiz96/arch-update/releases/latest) et extrayez la *(vous pouvez également cloner ce référentiel via `git clone`)*.

Expand Down Expand Up @@ -155,7 +156,7 @@ Alternativement, vous pouvez voir la liste des mises à jour disponible dans le

![dropdown_menu_fr](https://github.com/user-attachments/assets/60c3c0d8-8091-4047-b8da-ce8f8bc72476)

Quand l'icône du systray est cliquée, elle affiche la liste des paquets disponibles pour la mise à jour dans une fenêtre de terminal et demande la confirmation de l'utilisateur pour procéder à l'installation (peut aussi être lancé en exécutant la commande `arch-update`, requiert [yay](https://aur.archlinux.org/packages/yay "yay") ou [paru](https://aur.archlinux.org/packages/paru "paru") pour le support des paquets AUR et [flatpak](https://archlinux.org/packages/extra/x86_64/flatpak/) pour le support des paquets Flatpak).
Quand l'icône du systray est cliquée, elle affiche la liste des paquets disponibles pour la mise à jour dans une fenêtre de terminal et demande la confirmation de l'utilisateur pour procéder à l'installation (peut aussi être lancé en exécutant la commande `arch-update`, requiert [paru](https://aur.archlinux.org/packages/paru "paru"), [yay](https://aur.archlinux.org/packages/yay "yay") ou [pikaur](https://aur.archlinux.org/packages/pikaur "pikaur") pour le support des paquets AUR et [flatpak](https://archlinux.org/packages/extra/x86_64/flatpak/) pour le support des paquets Flatpak).

![listing_packages-FR](https://github.com/Antiz96/arch-update/assets/53110319/60547cde-f327-46f8-907c-61bf9bbee6c5)

Expand Down Expand Up @@ -238,7 +239,7 @@ Les options prises en charge sont :
- NoVersion # Ne pas afficher les modifications de versions des paquets lors du listing des mises à jour en attente (y compris lors de l'utilisation de l'option `-l / --list`).
- AlwaysShowNews # Toujours afficher les Arch news avant de mettre à jour, peu importe s'il y en a une nouvelle depuis la dernière exécution ou non.
- NewsNum=[Num] # Nombre de Arch news à affcher avant la mise à jour et avec l'option `-n / --news` (voir la page de manuel arch-update(1) pour plus de details). La valeur par défaut est 5.
- AURHelper=[AUR Helper] # AUR helper à utiliser pour la prise en charge des paquets AUR. Les valeurs valides sont `paru` ou `yay`. Si cette option n'est pas spécifiée, Arch-Update utilisera le premier AUR helper disponible dans l'ordre suivant : `paru` puis `yay` (si aucun des deux n'est installé, Arch-Update ne prendra pas en compte les paquets AUR).
- AURHelper=[AUR Helper] # AUR helper à utiliser pour la prise en charge des paquets AUR. Les valeurs valides sont `paru`, `yay` ou `pikaur`. Si cette option n'est pas spécifiée, Arch-Update utilisera le premier AUR helper disponible dans l'ordre suivant : `paru` puis `yay` puis `pikaur` (si aucun d'eux n'est installé, Arch-Update ne prendra pas en compte les paquets AUR).
- PrivilegeElevationCommand=[Cmd] # Commande à utiliser pour l'élévation de privilège. Les valeurs valides sont `sudo`, `doas` ou `run0`. Si cette option n'est pas spécifiée, Arch-Update utilisera la première commande disponible dans l'odre suivant : `sudo`, `doas` puis `run0`.
- KeepOldPackages=[Num] # Nombre d'anciennes versions de paquets à conserver dans le cache de pacman. La valeur par défaut est 3.
- KeepUninstalledPackages=[Num] # Nombre de versions de paquets désinstallés à conserver dans le cache de pacman. La valeur par défaut est 0.
Expand All @@ -254,9 +255,10 @@ Pour plus d'informations, consultez la page de manuel arch-update.conf(5).

### Support du AUR

Arch-Update prend en charge les paquets AUR si **yay** ou **paru** est installé :
Arch-Update prend en charge les paquets AUR si **paru**, **yay** ou **pikaur** est installé :
Voir <https://github.com/morganamilo/paru> et <https://aur.archlinux.org/packages/paru>
Voir <https://github.com/Jguer/yay> et <https://aur.archlinux.org/packages/yay>
Voir <https://github.com/morganamilo/paru> et <https://aur.archlinux.org/packages/paru>
Voir <https://github.com/actionless/pikaur> et <https://aur.archlinux.org/packages/pikaur>

### Support de Flatpak

Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Features:
- Automatic check for pending kernel updates requiring a reboot to be applied and offers to do so if there's one.
- Automatic check for services requiring a post upgrade restart and offers to do so if there are.
- Support for `sudo`, `doas` & `run0`.
- Optional support for AUR packages (through `yay` or `paru`).
- Optional support for AUR packages (through `paru`, `yay` or `pikaur`).
- Optional support for Flatpak packages.
- Optional support for desktop notifications on new available updates.

Expand All @@ -55,8 +55,9 @@ sudo pacman -S --needed pacman-contrib archlinux-contrib curl fakeroot htmlq dif

Additional optional dependencies you might need or want:

- [yay](https://aur.archlinux.org/packages/yay): AUR Packages support
- [paru](https://aur.archlinux.org/packages/paru): AUR Packages support
- [yay](https://aur.archlinux.org/packages/yay): AUR Packages support
- [pikaur](https://aur.archlinux.org/packages/pikaur): AUR Packages support
- [flatpak](https://archlinux.org/packages/extra/x86_64/flatpak/): Flatpak Packages support
- [libnotify](https://archlinux.org/packages/extra/x86_64/libnotify/): Desktop notifications support on new available updates (see <https://wiki.archlinux.org/title/Desktop_notifications>)
- [vim](https://archlinux.org/packages/extra/x86_64/vim/): Default merge program for pacdiff
Expand Down Expand Up @@ -155,7 +156,7 @@ Alternatively, you can see the list of available updates in the dropdown menu en

![dropdown_menu](https://github.com/user-attachments/assets/4621d7d2-a9e4-40c3-851f-ee1687e6cf1e)

When the systray icon is left-clicked, it prints the list of packages available for updates inside a terminal window and asks for the user's confirmation to proceed with the installation (it can also be launched by running the `arch-update` command, requires [yay](https://aur.archlinux.org/packages/yay "yay") or [paru](https://aur.archlinux.org/packages/paru "paru") for AUR packages support and [flatpak](https://archlinux.org/packages/extra/x86_64/flatpak/) for Flatpak packages support).
When the systray icon is left-clicked, it prints the list of packages available for updates inside a terminal window and asks for the user's confirmation to proceed with the installation (it can also be launched by running the `arch-update` command, requires [paru](https://aur.archlinux.org/packages/paru "paru"), [yay](https://aur.archlinux.org/packages/yay "yay") or [pikaur](https://aur.archlinux.org/packages/pikaur "pikaur") for AUR packages support and [flatpak](https://archlinux.org/packages/extra/x86_64/flatpak/) for Flatpak packages support).

![listing_packages](https://github.com/Antiz96/arch-update/assets/53110319/ed552414-0dff-4cff-84d2-6ff13340259d)

Expand Down Expand Up @@ -238,7 +239,7 @@ The supported options are:
- NoVersion # Do not show versions changes for packages when listing pending updates (including when using the `-l / --list` option).
- AlwaysShowNews # Always display Arch news before updating, regardless of whether there's a new one since the last run or not.
- NewsNum=[Num] # Number of Arch news to display before updating and with the `-n / --news` option (see the arch-update(1) man page for more details). Defaults to 5.
- AURHelper=[AUR Helper] # AUR helper to be used for AUR packages support. Valid values are `paru` or `yay`. If this option is not set, Arch-Update will use the first available AUR helper in the following order: `paru` then `yay` (in case none of them is installed, Arch-Update will not take AUR packages into account).
- AURHelper=[AUR Helper] # AUR helper to be used for AUR packages support. Valid values are `paru`, `yay` or `pikaur`. If this option is not set, Arch-Update will use the first available AUR helper in the following order: `paru` then `yay` then `pikaur` (in case none of them is installed, Arch-Update will not take AUR packages into account).
- PrivilegeElevationCommand=[Cmd] # Command to be used for privilege elevation. Valid values are `sudo`, `doas` or `run0`. If this option is not set, Arch-Update will use the first available command in the following order: `sudo`, `doas` then `run0`.
- KeepOldPackages=[Num] # Number of old packages' versions to keep in pacman's cache. Defaults to 3.
- KeepUninstalledPackages=[Num] # Number of uninstalled packages' versions to keep in pacman's cache. Defaults to 0.
Expand All @@ -254,9 +255,10 @@ For more information, see the arch-update.conf(5) man page.

### AUR support

Arch-Update supports AUR packages if **yay** or **paru** is installed:
Arch-Update supports AUR packages if **paru**, **yay** or **pikaur** is installed:
See <https://github.com/morganamilo/paru> and <https://aur.archlinux.org/packages/paru>
See <https://github.com/Jguer/yay> and <https://aur.archlinux.org/packages/yay>
See <https://github.com/morganamilo/paru> and <https://aur.archlinux.org/packages/paru>
See <https://github.com/actionless/pikaur> and <https://aur.archlinux.org/packages/pikaur>

### Flatpak support

Expand Down
17 changes: 10 additions & 7 deletions doc/man/arch-update.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "ARCH-UPDATE" "1" "October 2024" "Arch-Update 3.3.0" "Arch-Update Manual"
.TH "ARCH-UPDATE" "1" "November 2024" "Arch-Update 3.3.0" "Arch-Update Manual"

.SH NAME
arch-update \- An update notifier & applier for Arch Linux that assists you with important pre / post update tasks.
Expand All @@ -10,15 +10,15 @@ arch-update \- An update notifier & applier for Arch Linux that assists you with
.SH DESCRIPTION
An update notifier & applier for Arch Linux that assists you with important pre / post update tasks and that includes a clickeable systray applet for an easy integration with any panel on any Desktop Environment / Window Manager.
.br
.RB "Optional support for AUR packages update (through " "yay " "or " "paru" "), Flatpak packages update (through " "flatpak" ") and desktop notifications (through " "libnotify" ")."
.RB "Optional support for AUR packages update (through " "paru" ", " "yay " "or " "pikaur" "), Flatpak packages update (through " "flatpak" ") and desktop notifications (through " "libnotify" ")."
.br
Arch-Update is designed to follow usual system maintenance steps, as described in the Arch Wiki at https://wiki.archlinux.org/title/System_maintenance.

.SH OPTIONS
.PP
If no option is passed, launch the relevant series of functions to perform a complete and proper update starting by displaying the list of packages available for update, then ask for the user's confirmation to proceed with the installation.
.br
.RB "It also supports AUR packages update (if " "yay " "or " "paru " "is installed) and Flatpak packages update (if " "flatpak " "is installed)."
.RB "It also supports AUR packages update (if " "paru" ", " "yay " "or " "pikaur " "is installed) and Flatpak packages update (if " "flatpak " "is installed)."
.br
Before performing the update, it offers to display the latest Arch Linux news to the user. By default, Arch news are only displayed if at least a new one has been published since the last run. Arch news published since the last run or at the same date are tagged as '[NEW]'.
.br
Expand All @@ -34,7 +34,7 @@ Check for available updates.
.br
It changes the systray icon and sends a desktop notification containing the number of available updates (if there are new available updates compared to the last check).
.br
.RB "It supports AUR packages update (if " "yay " "or " "paru " "is installed) and Flatpak packages update (if " "flatpak " "is installed)."
.RB "It supports AUR packages update (if " "paru" ", " "yay " "or " "pikaur " "is installed) and Flatpak packages update (if " "flatpak " "is installed)."
.br
.RB "The " "\-\-check " "option is automatically launched at boot and then every hour if you enabled the associated " "systemd.timer " "with the following command:"
.br
Expand Down Expand Up @@ -136,11 +136,13 @@ To start it automatically at boot, you can either:
.SH TIPS AND TRICKS
.TP
.B AUR Support
.RB "Arch-Update supports AUR packages update when checking and installing updates if " "yay " "or " "paru " "is installed."
.RB "Arch-Update supports AUR packages update when checking and installing updates if " "paru" ", " "yay " "or " "pikaur " "is installed."
.br
See https://github.com/morganamilo/paru and https://aur.archlinux.org/packages/paru
.br
See https://github.com/Jguer/yay and https://aur.archlinux.org/packages/yay
.br
See https://github.com/morganamilo/paru and https://aur.archlinux.org/packages/paru
See https://github.com/actionless/pikaur and https://aur.archlinux.org/packages/pikaur

.TP
.B Flatpak Support
Expand Down Expand Up @@ -291,8 +293,9 @@ The diff prog editor set in the arch-update.conf configuration file isn't found
.BR pacman (8),
.BR pacdiff (8),
.BR paccache (8),
.BR yay (8),
.BR paru (8),
.BR yay (8),
.BR pikaur (1),
.BR flatpak (1),
.BR arch-update.conf (5)

Expand Down
4 changes: 2 additions & 2 deletions doc/man/arch-update.conf.5
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "ARCH-UPDATE.CONF" "5" "October 2024" "Arch-Update 3.3.0" "Arch-Update Manual"
.TH "ARCH-UPDATE.CONF" "5" "November 2024" "Arch-Update 3.3.0" "Arch-Update Manual"

.SH NAME
arch-update.conf \- arch-update configuration file.
Expand Down Expand Up @@ -37,7 +37,7 @@ Always display Arch news before updating, regardless of whether there's a new on

.TP
.B AURHelper=[AUR Helper]
AUR helper to be used for AUR packages support. Valid values are paru or yay. If this option is not set, Arch-Update will use the first installed AUR helper in the following order: paru then yay (in case none of them is installed, Arch-Update will not take AUR packages into account).
AUR helper to be used for AUR packages support. Valid values are paru, yay or pikaur. If this option is not set, Arch-Update will use the first installed AUR helper in the following order: paru then yay then pikaur (in case none of them is installed, Arch-Update will not take AUR packages into account).

.TP
.B PrivilegeElevationCommand=[Cmd]
Expand Down
Loading