#apk #sys #alpine #keeper #bindings #package #install

sys apk-tools-sys

Rust bindings for Alpine Linux' package manager, the Alpine Package Keeper (APK)

1 unstable release

0.1.0 Jul 3, 2022

#568 in Operating systems

22 downloads per month

GPL-2.0-or-later

25KB
612 lines

apk-polkit-rs

Gitlab CI status

apk-polkit-rs exposes a DBus API for libapk, the library used by APK, the Alpine Package Keeper. It is intended to be used by software centres like GNOME Software.

apk-polkit-rs works by running as a daemon with root permissions. It authenticates users via polkit and if the authentication suceeds, it executes the operation the user instructed it to do (e.g. install packages, update packages, ...)

Building

Apk-polkit has a few dependencies:

  • gio-2.0 for the client DBus library (used by GNOME Software)
  • Cargo&rustc
  • meson

Once these are installed, building and installing it should be as easy as:

meson build
meson test -C build
meson install -C build

Translating

Apk-polkit-rs's .pot file can be generated via:

meson build
ninja -C build apk-polkit-pot

Afterwards this .pot file can be imported into translation programs like poedit. Save the resulting .po file which includes your translated strings in po/$langname.po, so e.g. for pt_BR (Brazillian Portuguese) po/pt_BR.po and add $langname to po/LINGUAS. Afterwards commit your changes with the following message: "chore(po): add $LANGNAME translation"

Dependencies

~1.1–3.5MB
~74K SLoC