wok view sweethome3d/receipt @ rev 25477

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