This repository has been archived on 2026-08-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
varde/dist/PKGBUILD
T
bl c52c3b1238
ci / quality (push) Failing after 1m43s
Release pipeline: cargo-release config + Gitea Actions workflows
- release.toml: one shared workspace version, single vX.Y.Z tag,
  full test suite as the pre-release gate, no crates.io publishing.
- .gitea/workflows/ci.yml: the Woodpecker quality bar (fmt, clippy
  -D warnings, tests) for repos served by act_runner.
- .gitea/workflows/release.yml: on a version tag, build stripped
  release binaries for x86_64 and aarch64 Linux, bundle them with the
  systemd units, rendered man pages and example config, and attach the
  tarballs (+ sha256) to a Gitea release via the API.
- dist/PKGBUILD: point at the repo's new home on project.uhhm.no.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-16 14:54:17 +02:00

50 lines
1.7 KiB
Bash

# Maintainer: you
#
# UNTESTED SKELETON — best-effort Arch packaging for varde. Review before
# building; in particular pkgver/source must point at a real release.
pkgname=varde
pkgver=0.1.0
pkgrel=1
pkgdesc="Content-addressed blob mirror daemon on iroh"
arch=('x86_64' 'aarch64')
url="https://project.uhhm.no/uhhm/varde"
license=('MIT OR Apache-2.0')
depends=('gcc-libs')
optdepends=('networkmanager: metered-connection detection')
makedepends=('cargo' 'scdoc')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release --locked
scdoc < dist/varde.8.scd > varde.8
scdoc < dist/varde-ctl.1.scd > varde-ctl.1
}
check() {
cd "$pkgname-$pkgver"
# Integration tests spawn daemons and use the network; keep package
# builds to the fast unit tests.
cargo test --release --locked --lib -p varde-proto -p varde-daemon
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 target/release/varde-daemon "$pkgdir/usr/bin/varde-daemon"
install -Dm755 target/release/varde-ctl "$pkgdir/usr/bin/varde-ctl"
install -Dm644 dist/varde.service "$pkgdir/usr/lib/systemd/system/varde.service"
install -Dm644 dist/varde.socket "$pkgdir/usr/lib/systemd/system/varde.socket"
install -Dm644 dist/user/varde.service "$pkgdir/usr/lib/systemd/user/varde.service"
install -Dm644 dist/user/varde.socket "$pkgdir/usr/lib/systemd/user/varde.socket"
install -Dm644 dist/config.toml "$pkgdir/etc/varde/config.toml"
install -Dm644 varde.8 "$pkgdir/usr/share/man/man8/varde.8"
install -Dm644 varde-ctl.1 "$pkgdir/usr/share/man/man1/varde-ctl.1"
}