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