add LICENSE, shaders, Cargo.lock, and AUR package

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 21:00:34 +02:00
parent a35a741b07
commit 1f9f01a238
39 changed files with 6078 additions and 2 deletions
+55
View File
@@ -0,0 +1,55 @@
# Maintainer: Bendik Aagaard Lynghaug <bendik.lynghaug@gmail.com>
pkgname=gpupaper-git
pkgver=r1.f53340a
pkgrel=1
pkgdesc="Wayland layer-surface wallpaper runner powered by GLSL/WGSL fragment shaders (wgpu)"
arch=('x86_64' 'aarch64')
url="https://prosjekt.klingenbergbygg.no/bl/gpupaper"
license=('MIT')
depends=('wayland' 'libglvnd')
makedepends=('rust' 'cargo')
optdepends=(
'vulkan-icd-loader: Vulkan backend (generic loader)'
'mesa: open-source Vulkan/OpenGL for AMD, Intel, and Raspberry Pi'
'nvidia-utils: NVIDIA Vulkan/OpenGL support'
)
provides=('gpupaper')
conflicts=('gpupaper')
source=("gpupaper::git+https://prosjekt.klingenbergbygg.no/bl/gpupaper.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/gpupaper"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/gpupaper"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/gpupaper"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --offline --release
}
check() {
cd "$srcdir/gpupaper"
export RUSTUP_TOOLCHAIN=stable
cargo test --offline
}
package() {
cd "$srcdir/gpupaper"
install -Dm755 "target/release/gpupaper" "$pkgdir/usr/bin/gpupaper"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Example shaders
install -dm755 "$pkgdir/usr/share/gpupaper/shaders"
install -Dm644 shaders/*.frag "$pkgdir/usr/share/gpupaper/shaders/"
}