upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / wmfocus / trunk / PKGBUILD
blob5a638afbd6da7471a7935f97f297535a38182198
1 # Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
2 pkgname=wmfocus
3 pkgver=1.4.0
4 pkgrel=1
5 pkgdesc="Visually focus window by label"
6 url="https://github.com/svenstaro/wmfocus"
7 arch=("x86_64")
8 license=("MIT")
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')
14 build() {
15     cd "$srcdir/$pkgname-$pkgver"
16     cargo build --locked --release --features i3
19 check() {
20     cd "$srcdir/$pkgname-$pkgver"
21     cargo test --locked --release --features i3
24 package() {
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"