From 947e0ad05727086a0fea120012580fb24027f40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20S=C3=A1lyi?= Date: Fri, 25 Apr 2025 14:26:42 +0200 Subject: [PATCH] Update PKGBUILD template with PKGBUILD changes, add shellcheck comment --- PKGBUILD | 1 + PKGBUILD.in | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index de2ce07..d8b0bbb 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,4 +1,5 @@ # Maintainer: Gergő Sályi +# shellcheck shell=bash disable=SC2034,SC2154 pkgname=multibg-sway pkgver=0.1.10 pkgrel=1 diff --git a/PKGBUILD.in b/PKGBUILD.in index 56e66e5..1d179d2 100644 --- a/PKGBUILD.in +++ b/PKGBUILD.in @@ -1,14 +1,22 @@ # Maintainer: Gergő Sályi +# shellcheck shell=bash disable=SC2034,SC2154 pkgname=multibg-sway pkgver=@pkgver@ pkgrel=1 pkgdesc='Set a different wallpaper for the background of each Sway workspace' arch=('x86_64' 'i686' 'pentium4' 'armv7h' 'aarch64') url="https://github.com/gergo-salyi/multibg-sway" -license=('MIT' 'Apache') -depends=('gcc-libs' 'glibc') +# Direct source files are MIT OR Apache-2.0 but have GPL-3.0-or-later dependencies +license=('GPL-3.0-or-later') +depends=('dav1d>=1.3.0' 'gcc-libs' 'glibc') makedepends=('cargo') -optdepends=('sway: window manager to set the wallpapers with') +optdepends=( + 'hyprland: supported window manager to set the wallpapers with' + 'niri: supported window manager to set the wallpapers with' + 'sway: supported window manager to set the wallpapers with' + 'vulkan-driver: upload and serve wallpapers from GPU memory' + 'vulkan-icd-loader: upload and serve wallpapers from GPU memory' +) source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate") sha256sums=('@sha256sum@') @@ -22,12 +30,11 @@ build() { cd "$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target - cargo build --frozen --release + cargo build --frozen --release --features avif } package() { cd "$pkgname-$pkgver" install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md" - install -Dm644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE-MIT" }