Files
PKGBUILDS/bazaar/pkg.sh
T
Felitendo 0229020278 Group C: rebuild as source packages without the -bin suffix
These three have no upstream Linux binary to point at, but also no
equivalent in the AUR or the official repositories - so unlike the packages
dropped in 46ddf59 they can legitimately exist, just as source packages.

  bazaar-bin                    -> bazaar
  timetable-bin                 -> timetable
  chromium-widevine-helper-bin  -> chromium-widevine-helper

bazaar and timetable now build their meson projects in build(); the
checksum-only CI path still applies, since the source is upstream's release
tarball.

chromium-widevine-helper compiles nothing (Python script, JSON manifests and
extension assets). Upstream publishes neither releases nor tags, so the
package pins the main commit carrying the version from the Fedora spec and
verifies the two agree in prepare() - being tied to a specific version, it
needs no -git suffix. refresh_checksums() moves the pin.

The AUR repos for the new names are created by the first push; the old -bin
packages are left to the pending deletion requests.
2026-07-27 17:46:36 +02:00

28 lines
1.1 KiB
Bash

# bazaar - GNOME app store focused on flatpaks/Flathub
# (https://github.com/bazaar-org/bazaar), C + GTK4/blueprint.
#
# Upstream tags releases but publishes no binaries, so this is a source
# package: the PKGBUILD builds the meson project from the release tarball.
UPSTREAM_REPO="bazaar-org/bazaar"
# Installed in CI (pacman) before the makepkg test build.
BUILD_DEPS=(meson ninja blueprint-compiler glib2-devel python-babel gettext
gobject-introspection appstream flatpak gtk4 libadwaita
gtksourceview5 libdex glycin glycin-gtk4 webkitgtk-6.0 json-glib
libxmlb libyaml md4c libmalcontent libsecret libsoup3 libproxy
libheif)
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"
}