30 lines
833 B
Bash
30 lines
833 B
Bash
# Template file for 'onefetch'
|
|
pkgname=onefetch
|
|
version=2.20.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=385bc8f11c3e1cf168ef6d4c64263ded44af948184a990611c1b30fe6c46e37e
|
|
|
|
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
|
|
}
|