mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-11 06:38:31 +02:00
59 lines
1.5 KiB
Text
59 lines
1.5 KiB
Text
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=swww
|
|
pkgver=0.10.3
|
|
pkgrel=0
|
|
pkgdesc="Efficient animated wallpaper daemon for Wayland compositors"
|
|
url="https://github.com/LGFae/swww"
|
|
# loongarch64: fails to build rustix crate
|
|
arch="all !loongarch64"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
libxkbcommon-dev
|
|
lz4-dev
|
|
wayland-dev
|
|
wayland-protocols
|
|
scdoc
|
|
"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/LGFae/swww/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="!check" # Requires the binary to be available in PATH
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# Busybox's basename applet doesn't implement --suffix argument
|
|
sed -i 's/--suffix/-s/' doc/gen.sh
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
sh ./doc/gen.sh
|
|
}
|
|
|
|
package() {
|
|
for binary in swww swww-daemon; do
|
|
install -Dm755 target/release/$binary -t "$pkgdir"/usr/bin/
|
|
done
|
|
|
|
install -Dm644 doc/generated/*.1 -t "$pkgdir"/usr/share/man/man1/
|
|
|
|
install -Dm644 completions/swww.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/swww
|
|
install -Dm644 completions/swww.fish \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/swww.fish
|
|
install -Dm644 completions/_swww \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_swww
|
|
}
|
|
|
|
sha512sums="
|
|
36994d523eeececa98e55b1097712a3c4ac86a9a6d0f1667eb4426a8b32f51c647857b3a27a784ad7b169154869a83b7424949367ce04dc043540ba7c74ca928 swww-0.10.3.tar.gz
|
|
"
|