40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
# Template file for 'onefetch'
|
|
pkgname=onefetch
|
|
version=2.22.0
|
|
revision=1
|
|
build_style=cargo
|
|
build_helper=qemu
|
|
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=1741516c628bb70b432285aa78439c4acfeb5df19e48b8d85dba5f71336e190b
|
|
|
|
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
|
|
|
|
local _onefetch=${DESTDIR}/usr/bin/onefetch
|
|
|
|
vman docs/onefetch.1
|
|
|
|
for _shell in bash fish zsh; do
|
|
vtargetrun ${_onefetch} --generate ${_shell} > onefetch.${_shell}
|
|
vcompletion onefetch.${_shell} ${_shell}
|
|
done
|
|
}
|