v0.2.18 was already published to Forgejo on 2026-10-11, carrying the pre-fix binary, so this cycle cuts a new version rather than moving the published tag. The version is bumped in Cargo.toml, Cargo.lock, the RPM spec, the AUR PKGBUILD and the project guide so they stay in step. Cargo.lock matters on its own: the CI workflow builds with --locked, which fails outright when the manifest and the lock file disagree on the package version.
36 lines
1.3 KiB
Bash
36 lines
1.3 KiB
Bash
# Maintainer: oiupoyt
|
|
pkgname=scythe-git
|
|
pkgver=0.2.19
|
|
pkgrel=1
|
|
pkgdesc="High-performance GPU hardware screen recorder and instant replay overlay for Wayland and X11"
|
|
arch=('x86_64')
|
|
url="https://github.com/oiupoyt/scythe"
|
|
license=('MIT' 'Apache-2.0')
|
|
depends=('ffmpeg' 'pipewire' 'alsa-lib' 'libpulse' 'libva' 'libxcb')
|
|
makedepends=('cargo' 'git' 'pkgconf' 'clang')
|
|
provides=('scythe' 'vrec' 'vrec-git')
|
|
conflicts=('scythe' 'vrec')
|
|
source=("git+https://github.com/oiupoyt/scythe.git")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/scythe"
|
|
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || echo "0.2.19"
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/scythe"
|
|
cargo build --release --locked
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/scythe"
|
|
install -Dm755 target/release/scythe "$pkgdir/usr/bin/scythe"
|
|
ln -sf "/usr/bin/scythe" "$pkgdir/usr/bin/scythe-daemon"
|
|
ln -sf "/usr/bin/scythe" "$pkgdir/usr/bin/scythe-ui"
|
|
ln -sf "/usr/bin/scythe" "$pkgdir/usr/bin/vrec-daemon"
|
|
ln -sf "/usr/bin/scythe" "$pkgdir/usr/bin/vrec-ui"
|
|
ln -sf "/usr/bin/scythe" "$pkgdir/usr/bin/vrec"
|
|
install -Dm644 packaging/scythe.desktop "$pkgdir/usr/share/applications/scythe.desktop"
|
|
ln -sf "/usr/share/applications/scythe.desktop" "$pkgdir/usr/share/applications/vrec.desktop"
|
|
}
|