wok view sweethome3d/receipt @ rev 25682
Up libqcow (20240308)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 24 18:25:46 2024 +0000 (5 months ago) |
parents | 0aa9b0da5f5c |
children |
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|.*a href="|"https://sourceforge.net|;s| .*||;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 }