scythe/packaging/aur/PKGBUILD
spearzificial 3e5de43890 chore(release): v0.2.21
Supersedes the v0.2.20 publish, which failed at the RPM step and was
released with the Windows assets only.
2026-10-21 17:18:11 +05:30

36 lines
1.3 KiB
Bash

# Maintainer: oiupoyt
pkgname=scythe-git
pkgver=0.2.21
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.21"
}
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"
}