blob: e82332b21e627ea4416a0fe658291da2860016b1 (
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
47
|
pkgname=hyprshell-slim
# x-release-please-start-version
pkgver=4.10.8
# x-release-please-end
pkgrel=1
pkgdesc="A modern GTK4-based window switcher and application launcher for Hyprland (lightweight version)"
arch=('x86_64' 'aarch64')
conflicts=('hyprshell')
provides=('hyprshell')
url="https://github.com/h3rmt/hyprshell/"
license=("MIT")
makedepends=('cargo')
optdepends=('org.freedesktop.secrets: Store clipboard encryption in the keyring')
depends=('hyprland' 'gtk4-layer-shell' 'gtk4' 'libadwaita' 'zstd')
source=("hyprshell-$pkgver.tar.gz::https://static.crates.io/crates/hyprshell/hyprshell-$pkgver.crate")
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "hyprshell-$pkgver"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "hyprshell-$pkgver"
cargo build --frozen --release --no-default-features --features=slim
}
package() {
install -Dm755 "hyprshell-$pkgver/target/release/hyprshell" "$pkgdir/usr/bin/hyprshell"
install -Dm644 "hyprshell-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/hyprshell/LICENSE"
install -Dm644 "hyprshell-$pkgver/README.md" "$pkgdir/usr/share/doc/hyprshell/README.md"
install -Dm644 "hyprshell-$pkgver/docs/CONFIGURE.md" "$pkgdir/usr/share/doc/hyprshell/CONFIGURE.md"
install -Dm644 "hyprshell-$pkgver/docs/DEBUG.md" "$pkgdir/usr/share/doc/hyprshell/DEBUG.md"
install -Dm644 "hyprshell-$pkgver/packaging/hyprshell.service" "$pkgdir/usr/lib/systemd/user/hyprshell.service"
install -Dm644 "hyprshell-$pkgver/packaging/hyprshell-settings.png" "$pkgdir/usr/share/pixmaps/hyprshell.png"
install -Dm644 "hyprshell-$pkgver/packaging/hyprshell-settings.desktop" "$pkgdir/usr/share/applications/hyprshell-settings.desktop"
mkdir "$pkgdir/usr/share/hyprshell"
tar -xvf "hyprshell-$pkgver/packaging/usr-share.tar" -C "$pkgdir/usr/share/hyprshell" | tee >(wc -l | xargs -I {} echo "Extracted {} files to $pkgdir/usr/share/hyprshell") > /dev/null
"$pkgdir/usr/bin/hyprshell" completions bash -p "$pkgdir/usr/share/bash-completion/completions"
"$pkgdir/usr/bin/hyprshell" completions fish -p "$pkgdir/usr/share/fish/vendor_completions.d"
"$pkgdir/usr/bin/hyprshell" completions zsh -p "$pkgdir/usr/share/zsh/site-functions"
}
sha256sums=('d9b80044c7e37a9936cf414101fd9e7aa33eed8b767ec4f90090dc43b0cb4ed2')
|