# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=swayr pkgver=0.27.0 pkgrel=0 pkgdesc="A window switcher (and more) for Sway" url="https://sr.ht/~tsdh/swayr/" arch="all" license="GPL-3.0-or-later" makedepends="cargo cargo-auditable" source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~tsdh/swayr/archive/swayr-$pkgver.tar.gz" builddir="$srcdir/$pkgname-swayr-$pkgver" # secfixes: # 0.16.1-r0: # - CVE-2022-24713 export CARGO_PROFILE_RELEASE_OPT_LEVEL="z" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build -p swayr --release --frozen } check() { cargo test -p swayr --frozen } package() { install -D -m755 target/release/swayr -t "$pkgdir"/usr/bin/ install -D -m755 target/release/swayrd -t "$pkgdir"/usr/bin/ } sha512sums=" 27a52586c38219440a8b7760b0e43da45c5bc872a821ae118435e5bafe37a66271a4c4f3c082b81efc4341f8fc1cd13fe552d1b9bcc94115596a3ab38971632e swayr-0.27.0.tar.gz "