mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/shotman: new aport
A GUI screenshot tool for wayland compositors. https://sr.ht/~whynothugo/shotman/
This commit is contained in:
parent
b3a570ec0c
commit
2e79751f3b
43
testing/shotman/APKBUILD
Normal file
43
testing/shotman/APKBUILD
Normal file
@ -0,0 +1,43 @@
|
||||
# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
|
||||
pkgname=shotman
|
||||
pkgver=0.3.0
|
||||
pkgrel=0
|
||||
pkgdesc="Uncompromising screenshot GUI for Wayland"
|
||||
url="https://git.sr.ht/~whynothugo/shotman"
|
||||
# s390x: nix/libc crate
|
||||
arch="all !s390x"
|
||||
license="ISC"
|
||||
makedepends="cargo libxkbcommon-dev scdoc"
|
||||
subpackages="$pkgname-doc"
|
||||
source="shotman-$pkgver.tar.gz::https://git.sr.ht/~whynothugo/shotman/archive/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname-v$pkgver"
|
||||
|
||||
case "$CARCH" in
|
||||
riscv64)
|
||||
options="$options textrels"
|
||||
;;
|
||||
esac
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
cargo fetch --locked
|
||||
}
|
||||
|
||||
build() {
|
||||
cargo build --release --frozen
|
||||
scdoc < shotman.1.scd > shotman.1
|
||||
}
|
||||
|
||||
check() {
|
||||
cargo test --frozen
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm 0755 target/release/$pkgname "$pkgdir/usr/bin/$pkgname"
|
||||
install -Dm 0644 shotman.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
bcd00c4bba0bdb35d938b87e0ce4457f096d349be88601cb4fe29859d1783d727c1453f87c23adb63800d74430bb094f35e2bc88846ab85795475050cd690b8e shotman-0.3.0.tar.gz
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user