plasma-face-unlock: new package
This commit is contained in:
1 parent
09ce0e5853
commit
335d377bce
5 files changed
+131
No files matched your search
@@ -0,0 +1,29 @@
|
||||
# plasma-face-unlock - Face ID for KDE Plasma
|
||||
# (https://github.com/LoonixTools/plasma-face-unlock).
|
||||
#
|
||||
# Built from the release tarball with the upstream Makefile (CMake for the
|
||||
# daemon, the agent and the PAM module). The two face networks are sources of
|
||||
# their own from the OpenCV model zoo with fixed checksums, so a release only
|
||||
# changes the tarball's.
|
||||
|
||||
UPSTREAM_REPO="LoonixTools/plasma-face-unlock"
|
||||
|
||||
# Installed in CI (pacman) before the makepkg test build, which skips the
|
||||
# dependency check. check() runs the upstream tests and needs nothing more.
|
||||
BUILD_DEPS=(cmake scdoc gettext opencv qt6-base qt6-declarative layer-shell-qt ki18n pam systemd-libs)
|
||||
|
||||
latest_version() {
|
||||
curl -sf "https://api.github.com/repos/$UPSTREAM_REPO/releases/latest" \
|
||||
| jq -r '.tag_name' | sed 's/^v//'
|
||||
}
|
||||
|
||||
# refresh_checksums <version> <pkgbuild-path>
|
||||
refresh_checksums() {
|
||||
local ver="$1" pkgbuild="$2"
|
||||
local sha
|
||||
sha="$(curl -sfL \
|
||||
"https://github.com/$UPSTREAM_REPO/archive/refs/tags/v$ver.tar.gz" \
|
||||
| sha256sum | cut -d' ' -f1)"
|
||||
# Only the first sum is the tarball's; the models' stay.
|
||||
sed -i -E "s|^sha256sums=\('[^']*'|sha256sums=('$sha'|" "$pkgbuild"
|
||||
}
|
||||
Reference in new issue
Block a user