From 3dd53f3fe64b3549db4785b7ec854e062c2b915a Mon Sep 17 00:00:00 2001 From: Breadway Date: Tue, 16 Jun 2026 13:01:38 +0800 Subject: [PATCH] Republish bibata-cursor-theme to [breadway] (AUR-only upstream) Bibata is the chosen BOS default cursor but is AUR-only, so mirror the prebuilt -bin package into the [breadway] repo the same way calamares and zen-browser-bin are. The workflow clones the triggering branch (not the default branch) so it can build from iso-boot-fix, and uses the scoped REGISTRY_TOKEN for publishing. Co-Authored-By: Claude Opus 4.8 --- .forgejo/workflows/bibata.yml | 37 +++++++++++++++++++++++++++++++++++ packaging/bibata/PKGBUILD | 22 +++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .forgejo/workflows/bibata.yml create mode 100644 packaging/bibata/PKGBUILD diff --git a/.forgejo/workflows/bibata.yml b/.forgejo/workflows/bibata.yml new file mode 100644 index 0000000..fe87f51 --- /dev/null +++ b/.forgejo/workflows/bibata.yml @@ -0,0 +1,37 @@ +name: Build and publish bibata-cursor-theme + +# Bibata is AUR-only (not in Arch's official repos), so BOS maintains an +# in-house PKGBUILD and publishes the built package to the [breadway] repo. +# It's the prebuilt -bin variant, so no build deps beyond base-devel. +on: + push: + paths: + - 'packaging/bibata/**' + workflow_dispatch: + +jobs: + bibata: + runs-on: [self-hosted, hestia] + container: + image: archlinux:latest + steps: + - name: Build and publish + env: + PUBLISH_TOKEN: ${{ secrets.REGISTRY_TOKEN }} + run: | + set -euo pipefail + pacman -Syu --noconfirm base-devel git + useradd -m builder + git config --global --add safe.directory '*' + # Clone the branch that triggered this run (not the default branch), + # so the package can be built/published from a feature branch. + git clone --depth 1 --branch "${GITHUB_REF_NAME}" \ + "https://git.breadway.dev/${GITHUB_REPOSITORY}.git" /home/builder/src + chown -R builder:builder /home/builder/src + su builder -c "cd /home/builder/src/packaging/bibata && makepkg -f --noconfirm --nocheck" + PKG=$(find /home/builder/src/packaging/bibata -name '*.pkg.tar.zst' | head -1) + curl -fsS -X PUT \ + -H "Authorization: token ${PUBLISH_TOKEN}" \ + -H "Content-Type: application/octet-stream" \ + --data-binary "@${PKG}" \ + "https://git.breadway.dev/api/packages/Breadway/arch/os" diff --git a/packaging/bibata/PKGBUILD b/packaging/bibata/PKGBUILD new file mode 100644 index 0000000..b49e382 --- /dev/null +++ b/packaging/bibata/PKGBUILD @@ -0,0 +1,22 @@ +# BOS in-house rebuild of bibata-cursor-theme-bin (AUR-only upstream). +# Bibata is the BOS default cursor theme; the AUR package is republished to the +# [breadway] repo so the ISO build can pull it via pacman (same pattern as +# zen-browser-bin and calamares). Prebuilt release tarball — no build step. +# Upstream maintainer: Mark Wagie +pkgname=bibata-cursor-theme-bin +pkgver=2.0.7 +pkgrel=1 +pkgdesc="Material Based Cursor Theme" +arch=('any') +url="https://github.com/ful1e5/Bibata_Cursor" +license=('GPL-3.0-or-later') +provides=("${pkgname%-bin}") +conflicts=("${pkgname%-bin}") +options=('!strip') +source=("${pkgname%-bin}-$pkgver.tar.xz::$url/releases/download/v$pkgver/Bibata.tar.xz") +sha256sums=('172e33c4ae415278384dcecc7d1a9b7a024266bc944bc751fd86532be1cc6251') + +package() { + install -d "$pkgdir/usr/share/icons" + cp -r Bibata* "$pkgdir/usr/share/icons" +}