~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2

[PATCH v2] testing/swayhide: new aport

Edd Salkield <edd@salkield.uk>
Details
Message ID
<20220410164043.8539-1-edd@salkield.uk>
DKIM signature
missing
Download raw message
Patch: +33 -0
---
 testing/swayhide/APKBUILD | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 testing/swayhide/APKBUILD

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
"
-- 
2.35.1
Details
Message ID
<164960930058.985.18425945664287711579.gitlab.33080.404d3b7d6b79b2f1b22478fd609a478e5494ae98@listserv.local>
In-Reply-To
<20220410164043.8539-1-edd@salkield.uk> (view parent)
DKIM signature
missing
Download raw message
On Sun, 10 Apr 2022 17:40:44 +0100, Edd Salkield wrote:
> +makedepends="cargo"
> +source="$pkgname-$pkgver.tar.gz::https://github.com/NomisIV/swayhide/archive/refs/tags/v$pkgver.tar.gz"
> +

```suggestion:-0+0

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

```

this is already small (~600kb), but this should make it a tiny bit smaller again (~450kb) (these will eventually be the default flags for cargo in aports)

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33080#note_228529
Details
Message ID
<164960930173.985.10817292636413244627.gitlab.33080.6a5738b512632f55ac2519afd79ae32dcb98c507@listserv.local>
In-Reply-To
<20220410164043.8539-1-edd@salkield.uk> (view parent)
DKIM signature
missing
Download raw message
On Sun, 10 Apr 2022 17:40:44 +0100, Edd Salkield wrote:
> +license="GPL-3.0-only"
> +makedepends="cargo"
> +source="$pkgname-$pkgver.tar.gz::https://github.com/NomisIV/swayhide/archive/refs/tags/v$pkgver.tar.gz"

```suggestion:-0+0
source="https://github.com/NomisIV/swayhide/archive/v$pkgver/swayhide-v$pkgver.tar.gz"
```
a slightly shorter way to write the same thing

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/33080#note_228530
Reply to thread Export thread (mbox)