commit db46d5f99ed6f26c419c80c875d52e785a813f56 Author: Wynd Date: Tue Dec 17 00:52:00 2024 +0200 Added git-heatmap template diff --git a/srcpkgs/git-heatmap/template b/srcpkgs/git-heatmap/template new file mode 100644 index 0000000..bf53294 --- /dev/null +++ b/srcpkgs/git-heatmap/template @@ -0,0 +1,25 @@ +# 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 " +license="MIT" +homepage="https://git.pixelatedw.xyz/wynd/git-heatmap" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=86448cd65c80911e959c88cc2e1f4c0bbed883e1c318a3c124eac9a4be6d182c + +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 +}