blob: fffc5ee1614495b76493e895d7019753414877f2 (
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
|
# Maintainer: Elia Nitsche <nitscheelia at gmail dot com>
# Contributor: H3rmt
# This is a fork of the original hyprswitch as it got renamed to hyprshell!
pkgname=hyprswitch
# x-release-please-start-version
pkgver=4.0.1
# x-release-please-end
pkgrel=1
pkgdesc="A CLI/GUI that allows switching between windows in Hyprland"
arch=('any')
url="https://github.com/egnrse/hyprswitch/"
license=("MIT")
makedepends=('cargo')
depends=('hyprland' 'gtk4-layer-shell' 'gtk4')
source=("$pkgname-$pkgver.tar.gz::https://github.com/egnrse/hyprswitch/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('8038059fa9951db5fe30d7acf1ea575cd7db472d806d3fdb7e1cd26d22ad8e35')
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "$pkgname-$pkgver"
cargo build --frozen --release
}
package() {
install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname-$pkgver/target/release/$pkgname"
}
post_install() {
echo "Please restart the hyprswitch daemon"
}
|