blob: d932b2c0d2460be87c6fde81e64c48f5a9c09f02 (
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
|
# Maintainer: shinzo <pahasaradev@proton.me>
pkgname=hyprsnow
pkgver=0.1.6
pkgrel=1
pkgdesc="A snow overlay for Wayland/Hyprland"
arch=('x86_64')
url="https://github.com/spinualexandru/hyprsnow"
license=('MIT')
depends=('hyprland')
makedepends=('rust' 'cargo' 'git')
source=("git+https://github.com/spinualexandru/hyprsnow.git#tag=v$pkgver")
sha256sums=('SKIP')
build() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --release
}
check() {
cd "$pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo test --release
}
package() {
cd "$pkgname"
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|