wok-6.x annotate sozi/receipt @ rev 24308

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 17 18:18:17 2022 +0000 (2022-01-17)
parents 626c3828c08f
children
rev   line source
pascal@13415 1 # SliTaz package receipt.
pascal@13415 2
pascal@13415 3 PACKAGE="sozi"
pascal@13415 4 VERSION="12.09-27213249"
pascal@13415 5 CATEGORY="graphics"
pascal@13415 6 SHORT_DESC="A small program that can play animated presentations."
pascal@13415 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15593 8 LICENSE="GPL3"
pascal@21506 9 WEB_SITE="https://github.com/senshu/Sozi"
pascal@13415 10 TARBALL="$PACKAGE-release-$VERSION.zip"
pascal@13415 11 WGET_URL="https://github.com/downloads/senshu/Sozi/$TARBALL"
pascal@13415 12
pascal@13415 13 DEPENDS="inkscape python pygtk python-lxml"
pascal@13415 14 BUILD_DEPENDS="wget"
pascal@13415 15
pascal@24308 16 # What is the latest version available today?
pascal@24308 17 current_version()
pascal@24308 18 {
pascal@24308 19 wget -O - $WEB_SITE/releases 2>/dev/null | \
pascal@24308 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 21 }
pascal@24308 22
pascal@13415 23 # Rules to configure and make the package.
pascal@13415 24 compile_rules()
pascal@13415 25 {
pascal@13415 26 cd $src
pascal@13415 27 }
pascal@13415 28
pascal@13415 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13415 30 genpkg_rules()
pascal@13415 31 {
pascal@13416 32 mkdir -p $fs/usr/share/inkscape/extensions
pascal@13416 33 cp -a $src/* $fs/usr/share/inkscape/extensions/
pascal@13415 34 }