SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "sweethome3d"

# SliTaz package receipt.

PACKAGE="sweethome3d"
VERSION="7.0"
CATEGORY="misc"
SHORT_DESC="A free interior design application."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.sweethome3d.com/"

SOURCE="SweetHome3D"
TARBALL="$SOURCE-$VERSION-linux-x86.tgz"
WGET_URL="$SF_MIRROR/$PACKAGE/$SOURCE/$SOURCE-$VERSION/$TARBALL"

DEPENDS="libgl"
BUILD_DEPENDS=""

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/sweethome3d/files/SweetHome3D/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;/linux-x86/!d;s|.*3D-||;s|-linux.*||;q'
}

# Rules to gen a SliTaz package suitable for Tazpkg.   
genpkg_rules()                                      
{
    mkdir -p $fs/usr/share/applications
    mkdir -p $fs/usr/bin

    cp -a $src    $fs/usr/share/$PACKAGE

    cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
[Desktop Entry]
Encoding=UTF-8
Name=Interior design
Name[de]=Innenraum-Planer
Name[fr]=Aménagement d'intérieur
Type=Application
Exec=$PACKAGE
Icon=gohome.png
Terminal=false
Categories=Graphics;
EOT

    cat > $fs/usr/bin/$PACKAGE <<EOT
#!/bin/sh

exec /usr/share/$PACKAGE/SweetHome3D
EOT
    chmod +x    $fs/usr/bin/$PACKAGE
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)