Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 0D66478322B for ; Sun, 10 Apr 2022 17:06:12 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salkield.uk; s=key1; t=1649610371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=3omeA6lVjojEgUnFfeBXXadGSONCBuAPneznJY5EKhg=; b=HBkf7/sAN1TinXZRCoD+w6ZMrdblVKZRgY1TxIacXsSz8pSGI31C0PMQfmji1lU+EBy17Z rXxc/N+o+q6okvJf6b0lX0yBnyv6ifwcx/x5Eztp2F1mRHMbgKgJE/oCbEmEU9QOiHkoEp YRXaLkFxCoJ/AbY+0IfHgdhxe1dkmEQ= From: Edd Salkield To: alpine-aports@lists.alpinelinux.org Cc: Edd Salkield Subject: [PATCH v3] testing/swayhide: new aport Date: Sun, 10 Apr 2022 18:06:03 +0100 Message-Id: <20220410170602.18423-1-edd@salkield.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: salkield.uk --- testing/swayhide/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 testing/swayhide/APKBUILD diff --git a/testing/swayhide/APKBUILD b/testing/swayhide/APKBUILD new file mode 100644 index 0000000000..1f84db8324 --- /dev/null +++ b/testing/swayhide/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Edd Salkield +# Maintainer: Edd Salkield +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="https://github.com/NomisIV/swayhide/archive/v$pkgver/swayhide-v$pkgver.tar.gz" + +export CARGO_PROFILE_RELEASE_LTO="true" +export CARGO_PROFILE_RELEASE_PANIC="abort" +export CARGO_PROFILE_RELEASE_OPT_LEVEL="s" +export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 + +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-v0.2.0.tar.gz +" -- 2.35.1