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 5d29bdc4bd
ci / quality (push) Failing after 6s
Pre-0.1 cleanup: fmt, docs, licenses, AUR-ready packaging
- cargo fmt across the workspace (the CI gate the last push tripped).
- varde-daemon: drop the now-unused bytes dependency.
- varde-ctl(1): document push; gc reflects the continuous-sweep
  reality; subscribe mentions push events.
- config.toml example: gc_interval_secs, and an honest note that
  max_download_bytes_per_sec is currently unenforced.
- LICENSE-MIT + LICENSE-APACHE at the root (the declared license now
  ships as files), bundled into release tarballs and installed by the
  PKGBUILD.
- PKGBUILD: real maintainer, AUR pre-flight note (updpkgsums), license
  installation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-16 15:04:22 +02:00

54 lines
1.9 KiB
Bash

# Maintainer: Bendik Lynghaug <bendik.lynghaug@gmail.com>
#
# Before pushing to AUR: bump pkgver to the released tag and replace
# sha256sums with the real digest of the release tarball
# (`updpkgsums` does both checks in one step).
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"
install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
}