# 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 < $fs/usr/bin/$PACKAGE <