wok view svgcleaner/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (10 months ago)
parents e1e1678c5265
children
line source
1 # SliTaz package receipt.
3 PACKAGE="svgcleaner"
4 VERSION="0.9.5"
5 CATEGORY="graphics"
6 SHORT_DESC="Clean up SVG files from the unnecessary data."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/RazrFalcon/svgcleaner"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
14 BUILD_DEPENDS="rust-cargo cacerts"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # to build from crates: no source needed, but no version control
27 #cargo install svgcleaner --root=$install/usr
29 cargo build --release
31 mkdir -p $install/usr/bin
32 cp -a $src/target/release/svgcleaner $install/usr/bin
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_files svgcleaner
39 }