1 # Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
5 pkgdesc="Visually focus window by label"
6 url="https://github.com/svenstaro/wmfocus"
9 depends=("xcb-util-keysyms" "cairo" "libxkbcommon-x11")
10 makedepends=("rust" "python")
11 source=("$pkgname-$pkgver.tar.gz::https://github.com/svenstaro/$pkgname/archive/v$pkgver.tar.gz")
12 sha512sums=('397d4e15d5f70ab58d0556910fb2f80b72ffafee358351307968d19b0efef6edd776d805af77cab609b8fc4d1ec7ff5f9493c1402b2c63ca99c1f7f3f67552f2')
15 cd "$srcdir/$pkgname-$pkgver"
16 cargo build --locked --release --features i3
20 cd "$srcdir/$pkgname-$pkgver"
21 cargo test --locked --release --features i3
25 cd "$srcdir/$pkgname-$pkgver"
26 install -Dm 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
27 install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"