Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
145247ce
Commit
145247ce
authored
Aug 16, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add SweetHome3D support (hidden for now)
parent
e42d63ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
sweethome3d.sh
prescription.d/sweethome3d.sh
+36
-0
SweetHome3D.sh
repack.d/SweetHome3D.sh
+46
-0
No files found.
prescription.d/sweethome3d.sh
0 → 100755
View file @
145247ce
#!/bin/sh -x
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
SweetHome3D
arch
=
"
$(
$DISTRVENDOR
-a
)
"
case
"
$arch
"
in
x86_64
)
arch
=
x64
;;
x86
)
;;
*
)
fatal
"
$arch
arch is not supported"
;;
esac
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
exit
#echo "Install Sweet Home 3D from the official site" && exit
# TODO: get url from https://sourceforge.net/projects/sweethome3d/best_release.json (is it client system dependend??)
# see get_github_urls in eget
VERSION
=
6.6
PKG
=
"http://download.sourceforge.net/project/sweethome3d/SweetHome3D/SweetHome3D-
$VERSION
/SweetHome3D-
$VERSION
-linux-
$arch
.tgz"
epm
--repack
install
"
$PKG
"
repack.d/SweetHome3D.sh
0 → 100755
View file @
145247ce
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
SweetHome3D
subst
'1iConflicts:sweethome3d'
$SPEC
subst
"s|^License: unknown
$|
License: GPLv2|"
$SPEC
subst
"s|^URL:.*|URL: http://www.sweethome3d.com|"
$SPEC
subst
"s|^Summary:.*|Summary: An interior design application to draw house plans & arrange furniture|"
$SPEC
# move package to /opt
ROOTDIR
=
$(
basename
$(
find
$BUILDROOT
-mindepth
1
-maxdepth
1
-type
d
))
mkdir
$BUILDROOT
/opt
mv
$BUILDROOT
/
$ROOTDIR
$BUILDROOT
/opt/
$PRODUCT
subst
"s|
\"
/
$ROOTDIR
/|
\"
/opt/
$PRODUCT
/|"
$SPEC
# create desktop file
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
<<
EOF
>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
[Desktop Entry]
Version=1.0
Name=Sweet Home 3D
Name[fr]=Sweet Home 3D
Name[pt]=Sweet Home 3D
Name[ru]=Милый дом 3D
GenericName=Sweet Home 3D
GenericName[fr]=Sweet Home 3D
GenericName[ru]=Проектирование домашнего интерьера в 3D
Comment=Design Application
Comment[fr]=Application de conception d'intérieur en 3D
Comment[pt]=Aplicativo de design de interiores
Comment[ru]=Программа проектирования домашнего интерьера в 3D
Exec=/opt/
$PRODUCT
/SweetHome3D
Icon=sweethome3d
Terminal=false
Type=Application
StartupNotify=true
StartupWMClass=com-eteks-sweethome3d-SweetHome3D
Categories=Graphics;2DGraphics;3DGraphics;
MimeType=application/vnd.sh3d;
EOF
subst
"s|%files|%files
\n
/usr/share/applications/
$PRODUCT
.desktop|"
$SPEC
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment