blob: b01c5ffd45fffc5801b0ad680f70f3dbefb62f9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Mara Vexa <me@maravexa.com>
pkgname=hyprsaver
pkgver=0.4.7
pkgrel=1
pkgdesc="A Wayland-native screensaver for Hyprland — fractal shaders on wlr-layer-shell overlays"
arch=('x86_64')
url="https://github.com/maravexa/hyprsaver"
license=('MIT')
depends=(
'wayland'
'mesa'
'libwebp'
'libxkbcommon'
)
makedepends=(
'rust'
'cargo'
)
optdepends=(
'hypridle: idle daemon for automatic activation'
'hyprlock: lock screen to pair with hyprsaver'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/maravexa/hyprsaver/archive/v$pkgver.tar.gz")
sha256sums=('f668d4571edb1d14835022e0e8f5bcb89bb8f59d97f35838a5afc9200e0b26bc')
prepare() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo build --release --locked
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 target/release/hyprsaver "$pkgdir/usr/bin/hyprsaver"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -dm755 "$pkgdir/usr/share/$pkgname/examples"
install -Dm644 examples/hypridle.conf "$pkgdir/usr/share/$pkgname/examples/hypridle.conf"
install -Dm644 examples/hyprland.conf "$pkgdir/usr/share/$pkgname/examples/hyprland.conf"
install -Dm644 examples/hyprsaver.toml "$pkgdir/usr/share/$pkgname/examples/config.toml"
}
|