# SliTaz package receipt. PACKAGE="svgcleaner" VERSION="0.9.5" CATEGORY="graphics" SHORT_DESC="Clean up SVG files from the unnecessary data." MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL2" WEB_SITE="https://github.com/RazrFalcon/svgcleaner" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" BUILD_DEPENDS="rust-cargo cacerts" current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # to build from crates: no source needed, but no version control #cargo install svgcleaner --root=$install/usr cargo build --release mkdir -p $install/usr/bin cp -a $src/target/release/svgcleaner $install/usr/bin } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_files svgcleaner }