Drop pacman packaging, bakery-only distribution
All checks were successful
dev release / build (push) Successful in 1m17s
All checks were successful
dev release / build (push) Successful in 1m17s
bakery already fully covers what the PKGBUILD provided (binary, systemd --user service where applicable, dependency declarations) except a LICENSE copy, which bakery.toml's new license_file field now closes. Removes packaging/arch/ and .forgejo/workflows/package.yml; adds the LICENSE artifact to each release/dev-release/beta-release workflow's prepare step. Not pacman-installed inside BOS today (BOS already consumes these apps exclusively via build-local.sh's skel-staging), so this only removes the option to `pacman -S` outside of BOS/bakery.
This commit is contained in:
parent
8d3f55b607
commit
f9a8c4f915
8 changed files with 8 additions and 119 deletions
|
|
@ -62,6 +62,7 @@ jobs:
|
||||||
> "${PKG_DIR}/${bin}-x86_64.sha256"
|
> "${PKG_DIR}/${bin}-x86_64.sha256"
|
||||||
done
|
done
|
||||||
cp src/packaging/systemd/breadd.service "${PKG_DIR}/"
|
cp src/packaging/systemd/breadd.service "${PKG_DIR}/"
|
||||||
|
cp src/LICENSE "${PKG_DIR}/"
|
||||||
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
||||||
ln -sfn "${VERSION}" "/srv/breadway-dl/beta/bread/latest"
|
ln -sfn "${VERSION}" "/srv/breadway-dl/beta/bread/latest"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ jobs:
|
||||||
> "${PKG_DIR}/${bin}-x86_64.sha256"
|
> "${PKG_DIR}/${bin}-x86_64.sha256"
|
||||||
done
|
done
|
||||||
cp src/packaging/systemd/breadd.service "${PKG_DIR}/"
|
cp src/packaging/systemd/breadd.service "${PKG_DIR}/"
|
||||||
|
cp src/LICENSE "${PKG_DIR}/"
|
||||||
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
||||||
ln -sfn "${VERSION}" "/srv/breadway-dl/dev/bread/latest"
|
ln -sfn "${VERSION}" "/srv/breadway-dl/dev/bread/latest"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
name: Build and publish package
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: ['v*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
package:
|
|
||||||
runs-on: [self-hosted, hestia]
|
|
||||||
container:
|
|
||||||
image: archlinux:latest
|
|
||||||
steps:
|
|
||||||
# Note: no actions/checkout — the archlinux image has no Node, which JS
|
|
||||||
# actions require. Everything runs as shell steps and clones manually.
|
|
||||||
- name: Build and publish
|
|
||||||
env:
|
|
||||||
PUBLISH_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
VERSION="${GITHUB_REF_NAME#v}"
|
|
||||||
pacman -Syu --noconfirm base-devel git rust cargo libgit2 openssl
|
|
||||||
useradd -m builder
|
|
||||||
git config --global --add safe.directory '*'
|
|
||||||
git clone --branch "${GITHUB_REF_NAME}" --depth 1 \
|
|
||||||
"https://git.breadway.dev/${GITHUB_REPOSITORY}.git" /home/builder/src
|
|
||||||
cd /home/builder/src
|
|
||||||
git archive --format=tar.gz --prefix="bread-${VERSION}/" HEAD \
|
|
||||||
> packaging/arch/bread-${VERSION}.tar.gz
|
|
||||||
SHA=$(sha256sum packaging/arch/bread-${VERSION}.tar.gz | awk '{print $1}')
|
|
||||||
sed -i "s/^pkgver=.*/pkgver=${VERSION}/" packaging/arch/PKGBUILD
|
|
||||||
sed -i "s/^sha256sums=.*/sha256sums=('${SHA}')/" packaging/arch/PKGBUILD
|
|
||||||
chown -R builder:builder /home/builder/src
|
|
||||||
# --nocheck: packaging builds the artifact; tests belong in a CI job.
|
|
||||||
su builder -c "cd /home/builder/src/packaging/arch && makepkg -f --noconfirm --nocheck"
|
|
||||||
PKG=$(find /home/builder/src/packaging/arch -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"
|
|
||||||
|
|
@ -34,6 +34,7 @@ jobs:
|
||||||
> "${PKG_DIR}/${bin}-x86_64.sha256"
|
> "${PKG_DIR}/${bin}-x86_64.sha256"
|
||||||
done
|
done
|
||||||
cp src/packaging/systemd/breadd.service "${PKG_DIR}/"
|
cp src/packaging/systemd/breadd.service "${PKG_DIR}/"
|
||||||
|
cp src/LICENSE "${PKG_DIR}/"
|
||||||
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
cp src/bakery.toml "${PKG_DIR}/bakery.toml"
|
||||||
ln -sfn "${VERSION}" "/srv/breadway-dl/bread/latest"
|
ln -sfn "${VERSION}" "/srv/breadway-dl/bread/latest"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ binaries = ["breadd", "bread"]
|
||||||
system_deps = ["systemd-libs", "openssl", "zlib"]
|
system_deps = ["systemd-libs", "openssl", "zlib"]
|
||||||
optional_system_deps = ["bluez", "hyprland"]
|
optional_system_deps = ["bluez", "hyprland"]
|
||||||
bread_deps = []
|
bread_deps = []
|
||||||
|
license_file = "LICENSE"
|
||||||
|
|
||||||
[[service]]
|
[[service]]
|
||||||
unit = "breadd.service"
|
unit = "breadd.service"
|
||||||
|
|
|
||||||
|
|
@ -5,22 +5,14 @@ This directory contains distribution packaging for Bread.
|
||||||
|
|
||||||
```
|
```
|
||||||
packaging/
|
packaging/
|
||||||
├── arch/
|
|
||||||
│ └── PKGBUILD ← Arch Linux package build script
|
|
||||||
└── systemd/
|
└── systemd/
|
||||||
└── breadd.service ← systemd user service unit
|
└── breadd.service ← systemd user service unit
|
||||||
```
|
```
|
||||||
|
|
||||||
## Arch Linux
|
Prebuilt binaries are distributed exclusively via `bakery` (see the main
|
||||||
|
README) — there is no Arch/pacman package for `bread` anymore. `bakery`
|
||||||
```bash
|
installs the systemd user service unit itself, matching the `packaging/systemd/breadd.service`
|
||||||
cd packaging/arch
|
file here.
|
||||||
makepkg -si
|
|
||||||
```
|
|
||||||
|
|
||||||
The PKGBUILD builds both `breadd` and `bread` from source and installs them to `/usr/bin`. It also installs the systemd user service unit to `/usr/lib/systemd/user/`.
|
|
||||||
|
|
||||||
Before publishing to the AUR, update `pkgver`, `source`, and `sha256sums` to point at a tagged release tarball.
|
|
||||||
|
|
||||||
## systemd user service
|
## systemd user service
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
# Maintainer: Breadway <plasticbread849@gmail.com>
|
|
||||||
|
|
||||||
pkgname=bread
|
|
||||||
pkgver=0.6.6
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc="A reactive automation fabric for Linux desktops"
|
|
||||||
arch=('x86_64')
|
|
||||||
url="https://git.breadway.dev/Breadway/bread"
|
|
||||||
license=('MIT')
|
|
||||||
# mlua builds Lua from vendored C source. makepkg's default -flto=auto would
|
|
||||||
# emit GCC LTO bitcode into liblua5.4.a, which the Rust (lld) link can't read,
|
|
||||||
# leaving all lua_* symbols undefined. Disable LTO for a clean static link.
|
|
||||||
options=(!lto !debug)
|
|
||||||
depends=('glibc')
|
|
||||||
optdepends=(
|
|
||||||
'libnotify: desktop notifications via bread.notify()'
|
|
||||||
'upower: D-Bus battery events (sysfs polling used otherwise)'
|
|
||||||
)
|
|
||||||
makedepends=('rust' 'cargo')
|
|
||||||
source=("${pkgname}-${pkgver}.tar.gz")
|
|
||||||
sha256sums=('SKIP')
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
cargo build --release --locked
|
|
||||||
}
|
|
||||||
|
|
||||||
check() {
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
cargo test --release --locked --workspace
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
||||||
install -Dm755 target/release/breadd "${pkgdir}/usr/bin/breadd"
|
|
||||||
install -Dm755 target/release/bread "${pkgdir}/usr/bin/bread"
|
|
||||||
install -Dm644 packaging/systemd/breadd.service "${pkgdir}/usr/lib/systemd/user/breadd.service"
|
|
||||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
||||||
}
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
Arch packaging
|
|
||||||
==============
|
|
||||||
|
|
||||||
`PKGBUILD` builds and installs both `breadd` and `bread` from source.
|
|
||||||
|
|
||||||
## Local build
|
|
||||||
|
|
||||||
```bash
|
|
||||||
makepkg -si
|
|
||||||
```
|
|
||||||
|
|
||||||
## Before publishing to AUR
|
|
||||||
|
|
||||||
1. Tag a release on GitHub.
|
|
||||||
2. Update `pkgver` to match the tag.
|
|
||||||
3. Update `source` to the release tarball URL.
|
|
||||||
4. Run `updpkgsums` (or manually set `sha256sums`).
|
|
||||||
5. Update `url` if the repository has moved.
|
|
||||||
6. Set `depends` accurately — at minimum: `glibc`. Add `udev` if not linking statically.
|
|
||||||
|
|
||||||
## Runtime dependencies
|
|
||||||
|
|
||||||
| Package | Required | Notes |
|
|
||||||
|---------|----------|-------|
|
|
||||||
| `glibc` | yes | always |
|
|
||||||
| `udev` | yes | device events |
|
|
||||||
| `dbus` | optional | UPower battery events |
|
|
||||||
| `libnotify` | optional | `bread.notify()` (uses `notify-send`) |
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue