Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cogitri/apk-polkit
apk-polkit exposes a DBus API for libapk, the library used by APK, the Alpine Package Keeper. Superceded by apk-polkit-rs (https://gitlab.alpinelinux.org/Cogitri/apk-polkit-rs
https://github.com/cogitri/apk-polkit
alpine-linux dbus dbus-service dlanguage polkit postmarketos
Last synced: about 1 month ago
JSON representation
apk-polkit exposes a DBus API for libapk, the library used by APK, the Alpine Package Keeper. Superceded by apk-polkit-rs (https://gitlab.alpinelinux.org/Cogitri/apk-polkit-rs
- Host: GitHub
- URL: https://github.com/cogitri/apk-polkit
- Owner: Cogitri
- Created: 2020-03-03T20:07:30.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T09:12:42.000Z (over 4 years ago)
- Last Synced: 2024-12-13T04:31:56.145Z (about 1 month ago)
- Topics: alpine-linux, dbus, dbus-service, dlanguage, polkit, postmarketos
- Language: D
- Homepage: https://gitlab.alpinelinux.org/Cogitri/apk-polkit
- Size: 400 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# apk-polkit
[![Gitlab CI status](https://gitlab.alpinelinux.org/Cogitri/apk-polkit/badges/master/pipeline.svg)](https://gitlab.alpineliux.org/Cogitri/apk-polkit/commits/master)apk-polkit 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 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:
* [glibd](https://github.com/gtkd-developers/GlibD/)
* [polkit-d](https://gitlab.alpinelinux.org/Cogitri/polkit-d/)
* [apk-tools-d](https://gitlab.alpinelinux.org/Cogitri/apk-toolsd/)
* A functional D compiler.Once these are installed, building and installing it should be as easy as:
```sh
meson build
ninja -C build test
ninja -C build install
```# Translating
Apk-polkit's .pot file can be generated via:
```sh
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"