wok annotate sweethome3d/receipt @ rev 25474

openjdk-6-src: use find from findutils in place of busybox find
author Hans-G?nter Theisgen
date Thu Oct 13 16:42:57 2022 +0100 (2022-10-13)
parents e919c5a2742d
children 29df00e1e19d
rev   line source
pascal@12907 1 # SliTaz package receipt.
pascal@12907 2
pascal@12907 3 PACKAGE="sweethome3d"
Hans-G?nter@25339 4 VERSION="7.0"
pascal@12907 5 CATEGORY="misc"
pascal@12907 6 SHORT_DESC="A free interior design application."
pascal@12907 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15581 8 LICENSE="GPL2"
Hans-G?nter@25339 9 WEB_SITE="https://www.sweethome3d.com/"
Hans-G?nter@21992 10
Hans-G?nter@21992 11 SOURCE="SweetHome3D"
pascal@12907 12 TARBALL="$SOURCE-$VERSION-linux-x86.tgz"
pascal@12907 13 WGET_URL="$SF_MIRROR/$PACKAGE/$SOURCE/$SOURCE-$VERSION/$TARBALL"
pascal@12907 14
pascal@12907 15 DEPENDS="libgl"
pascal@12907 16 BUILD_DEPENDS=""
pascal@12907 17
pascal@24348 18 # What is the latest version available today?
pascal@24348 19 current_version()
pascal@24348 20 {
pascal@24348 21 wget -O - https://sourceforge.net/projects/sweethome3d/files/SweetHome3D/ 2>/dev/null | \
pascal@24348 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 23 sed '/scope="row/!d;/linux-x86/!d;s|.*3D-||;s|-linux.*||;q'
pascal@24348 24 }
pascal@24348 25
pascal@12907 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12907 27 genpkg_rules()
pascal@12907 28 {
Hans-G?nter@21992 29 mkdir -p $fs/usr/share/applications
Hans-G?nter@21992 30 mkdir -p $fs/usr/bin
Hans-G?nter@21992 31
Hans-G?nter@25339 32 cp -a $src $fs/usr/share/$PACKAGE
Hans-G?nter@21992 33
pascal@12907 34 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
pascal@12907 35 [Desktop Entry]
pascal@12907 36 Encoding=UTF-8
pascal@12907 37 Name=Interior design
Hans-G?nter@21992 38 Name[de]=Innenraum-Planer
pascal@12907 39 Name[fr]=Aménagement d'intérieur
pascal@12907 40 Type=Application
pascal@12907 41 Exec=$PACKAGE
pascal@12907 42 Icon=gohome.png
pascal@12907 43 Terminal=false
Hans-G?nter@25339 44 Categories=Graphics;
pascal@12907 45 EOT
Hans-G?nter@21992 46
pascal@12907 47 cat > $fs/usr/bin/$PACKAGE <<EOT
pascal@12907 48 #!/bin/sh
pascal@12907 49
pascal@12907 50 exec /usr/share/$PACKAGE/SweetHome3D
pascal@12907 51 EOT
Hans-G?nter@25339 52 chmod +x $fs/usr/bin/$PACKAGE
pascal@12907 53 }