mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 16:14:15 +02:00
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
# Contributor: Sodface <sod@sodface.com>
|
|
# Maintainer: Sodface <sod@sodface.com>
|
|
pkgname=satty
|
|
pkgver=0.19.0
|
|
pkgrel=0
|
|
pkgdesc="Screenshot annotation tool"
|
|
url="https://github.com/gabm/Satty"
|
|
arch="all"
|
|
license="MPL-2.0"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
gtk4.0-dev
|
|
libadwaita-dev
|
|
"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
options="!check" # no test suite
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/gabm/Satty/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/Satty-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/satty -t "$pkgdir"/usr/bin
|
|
|
|
install -Dm644 satty.desktop \
|
|
-t "$pkgdir"/usr/share/applications/
|
|
install -Dm644 assets/satty.svg \
|
|
-t "$pkgdir"/usr/share/icons/hicolor/scalable/apps
|
|
|
|
install -Dm644 completions/satty.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/satty
|
|
install -Dm644 completions/satty.fish \
|
|
-t "$pkgdir"/usr/share/fish/vendor_completions.d
|
|
install -Dm644 completions/_satty \
|
|
-t "$pkgdir"/usr/share/zsh/site-functions
|
|
}
|
|
|
|
sha512sums="
|
|
ff70fa3e00a1a1067c0a4c514ff2f64dd5f3db3cf114c11a3244fff1a8e37c2e23c6ed7974456c8ac1c3720b948526fea3a968287cd6ac22c9afe3690a51ec55 satty-0.19.0.tar.gz
|
|
"
|