aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdd Salkield <edd@salkield.uk>2022-04-10 17:40:44 +0100
committerdispatch <dispatch@listserv.local>2022-04-10 16:41:22 +0000
commit51920dec23ae28021d9364f3e60366966c58ef1d (patch)
tree89211651b9323ca127ee325d9d3e1435b94b39cb
parent32f032787f1c35fd8dfdbb15bb5e22cd3dd0d633 (diff)
downloadaports-patches/4022.tar.gz
aports-patches/4022.tar.bz2
aports-patches/4022.tar.xz
testing/swayhide: new aportpatches/4022
-rw-r--r--testing/swayhide/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/swayhide/APKBUILD b/testing/swayhide/APKBUILD
new file mode 100644
index 0000000000..19807a2cc4
--- /dev/null
+++ b/testing/swayhide/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Edd Salkield <edd@salkield.uk>
+# Maintainer: Edd Salkield <edd@salkield.uk>
+pkgname=swayhide
+pkgver=0.2.0
+pkgrel=0
+pkgdesc="A window swallower for swaywm"
+url="https://github.com/NomisIV/swayhide/"
+arch="all !s390x !riscv64" # rust
+license="GPL-3.0-only"
+makedepends="cargo"
+source="$pkgname-$pkgver.tar.gz::https://github.com/NomisIV/swayhide/archive/refs/tags/v$pkgver.tar.gz"
+
+prepare() {
+ default_prepare
+ cargo fetch --locked
+}
+
+build() {
+ cargo build --release --frozen
+}
+
+check() {
+ cargo test --frozen
+}
+
+package() {
+ cargo install --locked --offline --path . --root="$pkgdir/usr"
+ rm "$pkgdir"/usr/.crates*
+}
+
+sha512sums="
+6562a762282724ece5e764d361a4e5ddbfcc15f4ac2726db98d7ed57686e70911cafca3c2eab0cb7069922adf9689d53d2caae5a110e3f5ac7308b49271e01d1 swayhide-0.2.0.tar.gz
+"