Update PKGBUILD template with PKGBUILD changes, add shellcheck comment
This commit is contained in:
parent
bf166cf4a1
commit
947e0ad057
2 changed files with 13 additions and 5 deletions
1
PKGBUILD
1
PKGBUILD
|
@ -1,4 +1,5 @@
|
|||
# Maintainer: Gergő Sályi <salyigergo94@gmail.com>
|
||||
# shellcheck shell=bash disable=SC2034,SC2154
|
||||
pkgname=multibg-sway
|
||||
pkgver=0.1.10
|
||||
pkgrel=1
|
||||
|
|
17
PKGBUILD.in
17
PKGBUILD.in
|
@ -1,14 +1,22 @@
|
|||
# Maintainer: Gergő Sályi <salyigergo94@gmail.com>
|
||||
# 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"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue