bottles-opener: new package

This commit is contained in:
Felitendo committed 2026-09-21 12:20:17 +02:00
1 parent b7079ecff4
commit 54d9875d56
5 files changed
+114

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
# bottles-opener - opens files in their Windows program inside Bottles
# (https://github.com/Felitendo/bottles-opener).
#
# Shell and two small Python scripts, a gettext catalog and a scdoc man page:
# the PKGBUILD runs the upstream Makefile against the release tarball.
UPSTREAM_REPO="Felitendo/bottles-opener"
# Installed in CI (pacman) before the makepkg test build.
BUILD_DEPS=(gettext scdoc)
latest_version() {
gh api "repos/$UPSTREAM_REPO/releases/latest" --jq '.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)"
sed -i "s|^sha256sums=.*|sha256sums=('$sha')|" "$pkgbuild"
}