blob: 02da36e6685cfe03490eb67474d7d15ea03ca2aa (
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
|
# Maintainer: Andrej Benz <hello[at]benz[dot]dev>
pkgname=hyprland-easyfocus
pkgver=0.3.0
pkgrel=1
pkgdesc='A tool to help efficiently focus windows in Sway inspired by sway-easyfocus/i3-easyfocus.'
url='https://github.com/abenz1267/hyprland-easyfocus'
arch=('x86_64')
license=('MIT')
makedepends=('cargo' 'rustup')
depends=('gtk4-layer-shell')
conflicts=('hyprland-easyfocus')
provides=('hyprland-easyfocus')
source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('4fbae731c2036b5acdb7acc6ee2ca34c1f3a253c2f39b30c30d9f41d746a0d54')
b2sums=('c6580a0b8f16b907c7129eb25a55707c1bdfcf4d3f734b6e318526a49fc78ddb1c80325f685adc19894cd0e4e3eba440600d0814820d5f61fd614606990bc183')
build() {
cd ${pkgname}-${pkgver}
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
if command -v rustup > /dev/null 2>&1; then
rustup run stable cargo build --release
else
cargo build --release
fi
}
package() {
cd ${pkgname}-${pkgver}
install -Dm 755 target/release/hyprland-easyfocus -t "${pkgdir}/usr/bin"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|