wok-6.x view sweethome3d/receipt @ rev 24495
updated dolibarr again (10.0.6 -> 14.0.5)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 19 13:42:19 2022 +0100 (2022-02-19) |
parents | 2377c149c027 |
children | 0aa9b0da5f5c |
line source
1 # SliTaz package receipt.
3 PACKAGE="sweethome3d"
4 VERSION="6.3"
5 CATEGORY="misc"
6 SHORT_DESC="A free interior design application."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://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 configure and make the package.
27 compile_rules()
28 {
29 cd $src
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/applications
36 mkdir -p $fs/usr/bin
38 cp -a $src $fs/usr/share/$PACKAGE
40 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
41 [Desktop Entry]
42 Encoding=UTF-8
43 Name=Interior design
44 Name[de]=Innenraum-Planer
45 Name[fr]=Aménagement d'intérieur
46 Type=Application
47 Exec=$PACKAGE
48 Icon=gohome.png
49 Terminal=false
50 Categories=Office;
51 EOT
53 cat > $fs/usr/bin/$PACKAGE <<EOT
54 #!/bin/sh
56 exec /usr/share/$PACKAGE/SweetHome3D
57 EOT
58 chmod +x $fs/usr/bin/$PACKAGE
59 }