feat: update installation instructions and add .SRCINFO for packaging

This commit is contained in:
2026-03-17 22:21:20 +01:00
parent ffd849dec2
commit eb2463b28b
3 changed files with 19 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
yay -S k-shrink yay -S k-shrink
``` ```
AUR page: https://aur.archlinux.org/packages/k-shrink *(placeholder — submit PKGBUILD first)* AUR page: https://aur.archlinux.org/packages/k-shrink _(placeholder — submit PKGBUILD first)_
Then enable the service: Then enable the service:
@@ -21,7 +21,7 @@ systemctl --user enable --now k-shrink.service
**Prerequisites:** Rust toolchain, `wayland` libraries. **Prerequisites:** Rust toolchain, `wayland` libraries.
```bash ```bash
git clone https://github.com/PLACEHOLDER/k-shrink git clone https://github.com/GKaszewski/k-shrink
cd k-shrink cd k-shrink
cargo build --release cargo build --release
``` ```
@@ -54,7 +54,7 @@ mandb ~/.local/share/man # update man index
## cargo install ## cargo install
```bash ```bash
cargo install --git https://github.com/PLACEHOLDER/k-shrink k-shrink cargo install --git https://github.com/GKaszewski/k-shrink k-shrink
``` ```
Then enable the service (uses `%h/.cargo/bin/k-shrink`): Then enable the service (uses `%h/.cargo/bin/k-shrink`):

15
contrib/.SRCINFO Normal file
View File

@@ -0,0 +1,15 @@
pkgbase = k-shrink
pkgdesc = Wayland clipboard daemon that automatically compresses copied images
pkgver = 1.0.0
pkgrel = 1
url = https://github.com/GKaszewski/k-shrink
arch = x86_64
arch = aarch64
license = MIT
makedepends = rust
makedepends = cargo
depends = wayland
source = k-shrink-1.0.0.tar.gz::https://github.com/GKaszewski/k-shrink/archive/v1.0.0.tar.gz
sha256sums = d26601148005821c03454ea91828e5af6f3506baa1b5860b220aaac5c305cc5d
pkgname = k-shrink

View File

@@ -9,7 +9,7 @@ license=('MIT')
depends=('wayland') depends=('wayland')
makedepends=('rust' 'cargo') makedepends=('rust' 'cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('SKIP') sha256sums=('d26601148005821c03454ea91828e5af6f3506baa1b5860b220aaac5c305cc5d')
build() { build() {
cd "$pkgname-$pkgver" cd "$pkgname-$pkgver"