~kaction/aports

ref: 074101231f13e85e749dbd781dd0144aca24f3cf aports/community/swayr/APKBUILD -rw-r--r-- 1.1 KiB
07410123 — ptrcnull community/swayr: upgrade to 0.20.0 6 months ago
                                                                                
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
40
41
42
43
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=swayr
pkgver=0.20.0
pkgrel=0
pkgdesc="A window switcher (and more) for Sway"
url="https://sr.ht/~tsdh/swayr/"
arch="aarch64 armhf armv7 ppc64le x86 x86_64"  # limited by rust/cargo
license="GPL-3.0-or-later"
makedepends="cargo"
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_CODEGEN_UNITS=1
export CARGO_PROFILE_RELEASE_LTO="true"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
export CARGO_PROFILE_RELEASE_PANIC="abort"

prepare() {
	default_prepare
	cargo fetch --locked
}

build() {
	cargo 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="
78a1752515498b7ef2c8915a4b75e4c381c5fb630f6facbad8e0ce309d5c961520504ab0efc5980c794ed8685d2db0d808ac7ebfb963cf5b9b163eea10ebd7eb  swayr-0.20.0.tar.gz
"