mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 08:42:11 +01:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Contributor: Jakub Panek <me@panekj.dev>
|
|
# Maintainer: Dominika Liberda <ja@sdomi.pl>
|
|
pkgname=macchina
|
|
pkgver=6.1.8
|
|
pkgrel=1
|
|
pkgdesc="System information fetcher, with an (unhealthy) emphasis on performance"
|
|
url="https://github.com/Macchina-CLI/macchina"
|
|
# arm: needs https://github.com/Macchina-CLI/libmacchina/commit/1afd21de2d38b82cb2821259e260fcfc8d0cabc0
|
|
arch="all !armhf !armv7 !x86 !s390x !riscv64" # s390x and riscv64 blocked by cargo
|
|
license="MIT"
|
|
makedepends="cargo sqlite-dev cargo-auditable"
|
|
options="net"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Macchina-CLI/macchina/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/macchina -t "$pkgdir/usr/bin"
|
|
|
|
install -Dm644 doc/*.1 -t "$pkgdir/usr/share/man/man1"
|
|
install -Dm644 doc/*.7 -t "$pkgdir/usr/share/man/man7"
|
|
|
|
install -Dm644 contrib/themes/* -t "$pkgdir"/usr/share/macchina/themes
|
|
}
|
|
|
|
sha512sums="
|
|
e91c21497745e3317c811b0edbf004087989fbd1053cb5d63c9e802e5508dec104bb0834d1719c557a45aac2870c4605d00922e0505846a414af0db93d037349 macchina-6.1.8.tar.gz
|
|
"
|