mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 09:27:19 +02:00
42 lines
1 KiB
Text
42 lines
1 KiB
Text
# Contributor: Clayton Craft <clayton@craftyguy.net>
|
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=cosmic-screenshot
|
|
pkgver=1.0.0_alpha6
|
|
_upstreamver="${pkgver/_alpha/-alpha.}"
|
|
pkgrel=0
|
|
pkgdesc="Screenshot application for the COSMIC Desktop Environment"
|
|
url="https://github.com/pop-os/cosmic-screenshot"
|
|
arch="aarch64 x86_64"
|
|
license="GPL-3.0-only"
|
|
depends="
|
|
cosmic-icons
|
|
xdg-desktop-portal-cosmic
|
|
"
|
|
makedepends="
|
|
cargo
|
|
just
|
|
"
|
|
options="net !check" # fetch dependencies, no tests
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/pop-os/cosmic-screenshot/archive/refs/tags/epoch-$_upstreamver.tar.gz"
|
|
builddir="$srcdir/$pkgname-epoch-$_upstreamver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
just build-release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --release --frozen
|
|
}
|
|
|
|
package() {
|
|
just rootdir="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
1c4b5028562d9ffe5946e9a707319392fcc6b5d0e2536fdeb7a68d7c1030f944ecf58b07c1ea256e624af632996ddacc48bf546cde880e4383e13d8e314e054a cosmic-screenshot-1.0.0_alpha6.tar.gz
|
|
"
|