30 lines
833 B
Bash
30 lines
833 B
Bash
# Template file for 'onefetch'
|
|
pkgname=onefetch
|
|
version=2.21.0
|
|
revision=1
|
|
build_style=cargo
|
|
make_check_args="-- --skip info::tests::test_style_subtitle"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="zlib-devel libzstd-devel"
|
|
checkdepends="git"
|
|
short_desc="Git repository summary on your terminal"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://onefetch.dev"
|
|
changelog="https://github.com/o2sh/onefetch/raw/main/CHANGELOG.md"
|
|
distfiles="https://github.com/o2sh/onefetch/archive/refs/tags/${version}.tar.gz"
|
|
checksum=a035bc44ef0c04a330b409e08ee61ac8a66a56cb672f87a824d4c0349989eaf2
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
broken="exr crate unimplemented for BE"
|
|
fi
|
|
|
|
pre_build() {
|
|
vsed -i Cargo.toml -e "s/zlib-ng/zlib-stock/"
|
|
cargo update --package flate2@1.0
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|