wok-current view web-picozu/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents 80ebae36349f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="web-picozu"
4 VERSION="0.1"
5 CATEGORY="network"
6 SHORT_DESC="Picozu is a online HTML5 image editor."
7 MAINTAINER="hackdorte@sapo.pt"
8 LICENSE="Freeware"
9 SOURCE="picozu"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://people.slitaz.org/~leonardolaporte"
12 STUFF_DIR="lab.slitaz/5.0/pkg/web/image/editor"
13 WGET_URL="${WEB_SITE}/$STUFF_DIR/${TARBALL}"
14 TAGS="cloud editor image picozu"
16 DEPENDS="tazweb"
17 BUILD_DEPENDS="wget"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
23 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
30 # Build Tree.
31 mkdir -p $install/usr/share/applications
32 mkdir -p $install/usr/share/pixmaps
34 # Writing ".desktop" files.
35 # -------------------------
36 # The icons preserve the 'web-*' name for no future conflicts
37 # with other applications.
38 #
39 # >_ Picozu Desktop
40 #
41 cat > $install/usr/share/applications/web-picozu.desktop << EOT
42 [Desktop Entry]
43 Type=Application
44 Name=Picozu Image Editor (WebApp)
45 Comment=Picozu the HTML5 online image editor.
46 Categories=Network;
47 Icon=web-picozu
48 Exec=tazweb --notoolbar "https://www.picozu.com/editor"
50 EOT
51 #
52 # >_ Done
53 #
54 cp -a $src/icon/* $install/usr/share/pixmaps
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 cp -a $install/* $fs
61 }