- AppStream metainfo (validates), man page, bash/zsh/fish completions. - scripts/install.sh installs everything into a DESTDIR; the release archive (scripts/release-tarball.sh) and both PKGBUILDs use it. - packaging/aur-release: a slidewire package built from the tag. - CI moves to .gitea/workflows: works without sudo, installs Rust with rustup, checks fmt, clippy, tests, extracted translations, the desktop file, metainfo and cargo-deny; tags build and attach the archive. - deny.toml: licences compatible with GPL-3.0-or-later, crates.io only. - Cargo metadata, MSRV 1.95, thin LTO and stripped release builds. - CHANGELOG.md for 1.0.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# Maintainer: Nils Briggen <nilsbriggen@gmail.com>
|
|
pkgname=slidewire-git
|
|
_pkgname=slidewire
|
|
pkgver=r0.0000000
|
|
pkgrel=1
|
|
pkgdesc="Control application and device volumes with a MIDI controller"
|
|
arch=(x86_64 aarch64)
|
|
url="https://git.briggen.dev/NilsBriggen/SlideWire"
|
|
license=(GPL-3.0-or-later)
|
|
depends=(alsa-lib libpulse gcc-libs glibc dbus libxkbcommon wayland libglvnd)
|
|
makedepends=(cargo git)
|
|
optdepends=(
|
|
'libx11: X11 session support'
|
|
'libxcursor: X11 session support'
|
|
'libxi: X11 session support'
|
|
'libxrandr: X11 session support'
|
|
'easyeffects: EasyEffects preset buttons'
|
|
'ydotool: key-combination buttons'
|
|
)
|
|
provides=("$_pkgname")
|
|
conflicts=("$_pkgname")
|
|
source=("$_pkgname::git+$url.git")
|
|
sha256sums=(SKIP)
|
|
|
|
pkgver() {
|
|
cd "$_pkgname"
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
cd "$_pkgname"
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
|
}
|
|
|
|
build() {
|
|
cd "$_pkgname"
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
export CARGO_TARGET_DIR=target
|
|
# Keep the build directory out of panic messages.
|
|
export RUSTFLAGS="${RUSTFLAGS:-} --remap-path-prefix=$srcdir=/usr/src/debug/$pkgname"
|
|
cargo build --frozen --release
|
|
}
|
|
|
|
check() {
|
|
cd "$_pkgname"
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
cargo test --frozen --release
|
|
}
|
|
|
|
package() {
|
|
cd "$_pkgname"
|
|
scripts/install.sh "$pkgdir"
|
|
}
|