add LICENSE, shaders, Cargo.lock, and AUR package
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
pkgbase = gpupaper-git
|
||||
pkgdesc = Wayland layer-surface wallpaper runner powered by GLSL/WGSL fragment shaders (wgpu)
|
||||
pkgver = r1.f53340a
|
||||
pkgrel = 1
|
||||
url = https://prosjekt.klingenbergbygg.no/bl/gpupaper
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = MIT
|
||||
makedepends = rust
|
||||
makedepends = cargo
|
||||
depends = wayland
|
||||
depends = libglvnd
|
||||
optdepends = vulkan-icd-loader: Vulkan backend (generic loader)
|
||||
optdepends = mesa: open-source Vulkan/OpenGL for AMD, Intel, and Raspberry Pi
|
||||
optdepends = nvidia-utils: NVIDIA Vulkan/OpenGL support
|
||||
provides = gpupaper
|
||||
conflicts = gpupaper
|
||||
source = gpupaper::git+https://prosjekt.klingenbergbygg.no/bl/gpupaper.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = gpupaper-git
|
||||
@@ -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/"
|
||||
}
|
||||
Reference in New Issue
Block a user