void-packages/srcpkgs/git-heatmap/template

26 lines
825 B
Plaintext

# Template file for 'git-heatmap'
pkgname=git-heatmap
version=1.2.0
revision=1
hostmakedepends="curl pkg-config"
short_desc="Simple terminal heatmap for your local git repos"
maintainer="wynd <wyndftw@proton.me>"
license="GPL-3.0-or-later"
homepage="https://git.pixelatedw.xyz/wynd/git-heatmap"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=28fa38349ea4f4a7836febdb1b43ae6e8b7e0613bb797a7414c2874786395806
do_install() {
: ${nightly:=nightly-2024-12-02}
# Installing rust nightly
curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --profile minimal --default-toolchain ${nightly} -y
source "$HOME/.cargo/env"
# Installation
cargo +${nightly} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" --locked --path .
rm -f "${DESTDIR}"/usr/.crates.toml
rm -f "${DESTDIR}"/usr/.crates2.json
}