wok-current annotate sweethome3d/receipt @ rev 24724

updated libcap-ng and libcap-ng-dev (0.7.9 -> 0.8.2)
author Hans-G?nter Theisgen
date Tue Mar 15 10:51:40 2022 +0100 (2022-03-15)
parents 2377c149c027
children 0aa9b0da5f5c
rev   line source
pascal@12907 1 # SliTaz package receipt.
pascal@12907 2
pascal@12907 3 PACKAGE="sweethome3d"
Hans-G?nter@23687 4 VERSION="6.3"
pascal@12907 5 CATEGORY="misc"
pascal@12907 6 SHORT_DESC="A free interior design application."
pascal@12907 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15581 8 LICENSE="GPL2"
Hans-G?nter@21992 9 WEB_SITE="http://www.sweethome3d.com/"
Hans-G?nter@21992 10
Hans-G?nter@21992 11 SOURCE="SweetHome3D"
pascal@12907 12 TARBALL="$SOURCE-$VERSION-linux-x86.tgz"
pascal@12907 13 WGET_URL="$SF_MIRROR/$PACKAGE/$SOURCE/$SOURCE-$VERSION/$TARBALL"
pascal@12907 14
pascal@12907 15 DEPENDS="libgl"
pascal@12907 16 BUILD_DEPENDS=""
pascal@12907 17
pascal@24348 18 # What is the latest version available today?
pascal@24348 19 current_version()
pascal@24348 20 {
pascal@24348 21 wget -O - https://sourceforge.net/projects/sweethome3d/files/SweetHome3D/ 2>/dev/null | \
pascal@24348 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24348 23 sed '/scope="row/!d;/linux-x86/!d;s|.*3D-||;s|-linux.*||;q'
pascal@24348 24 }
pascal@24348 25
pascal@12907 26 # Rules to configure and make the package.
pascal@12907 27 compile_rules()
pascal@12907 28 {
pascal@12907 29 cd $src
pascal@12907 30 }
pascal@12907 31
pascal@12907 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12907 33 genpkg_rules()
pascal@12907 34 {
Hans-G?nter@21992 35 mkdir -p $fs/usr/share/applications
Hans-G?nter@21992 36 mkdir -p $fs/usr/bin
Hans-G?nter@21992 37
pascal@12907 38 cp -a $src $fs/usr/share/$PACKAGE
Hans-G?nter@21992 39
pascal@12907 40 cat > $fs/usr/share/applications/$PACKAGE.desktop <<EOT
pascal@12907 41 [Desktop Entry]
pascal@12907 42 Encoding=UTF-8
pascal@12907 43 Name=Interior design
Hans-G?nter@21992 44 Name[de]=Innenraum-Planer
pascal@12907 45 Name[fr]=Aménagement d'intérieur
pascal@12907 46 Type=Application
pascal@12907 47 Exec=$PACKAGE
pascal@12907 48 Icon=gohome.png
pascal@12907 49 Terminal=false
pascal@12907 50 Categories=Office;
pascal@12907 51 EOT
Hans-G?nter@21992 52
pascal@12907 53 cat > $fs/usr/bin/$PACKAGE <<EOT
pascal@12907 54 #!/bin/sh
pascal@12907 55
pascal@12907 56 exec /usr/share/$PACKAGE/SweetHome3D
pascal@12907 57 EOT
pascal@12907 58 chmod +x $fs/usr/bin/$PACKAGE
pascal@12907 59 }