-
Notifications
You must be signed in to change notification settings - Fork 1
/
snapcraft.yaml
87 lines (83 loc) · 2.64 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
base: core18
name: sweethome3d-homedesign
version: "1"
version-script: ls SweetHome3D*.tgz|sed 's/.*-\([^-]\+\)-linux-x64.tgz/\1/'|tr -s '_' '-'
summary: An interior design application to draw house plans & arrange furniture
description: |
Sweet Home 3D is a free interior design application that helps you place
your furniture on a house 2D plan, with a 3D preview.
Available at http://www.sweethome3d.com/, this program is aimed at people
who want to design their interior quickly, whether they are moving or they
just want to redesign their existing home. Numerous visual guides help you
draw the plan of your home and layout furniture. You may draw the walls of
your rooms upon the image of an existing plan, and then, drag and drop
furniture onto the plan from a catalog organized by categories. Each change
in the 2D plan is simultaneously updated in the 3D view, to show you a
realistic rendering of your layout.
confinement: strict
grade: stable
icon: data/gui/sweethome3d-homedesign.png
apps:
sweethome3d-homedesign:
command: desktop-launch $SNAP/sweethome3d/SweetHome3D-Java3D-1_5_2
plugs:
- cups-control
- desktop
- desktop-legacy
- home
- network
- opengl
- removable-media
- x11
environment:
_JAVA_OPTIONS: -Duser.home=$SNAP_USER_DATA
parts:
desktop-glib-only:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: glib-only
plugin: make
build-packages:
- libglib2.0-dev
stage-packages:
- adwaita-icon-theme
- dmz-cursor-theme
- gnome-themes-standard
- libgdk-pixbuf2.0-0
- libglib2.0-bin
- libxkbcommon0
- light-themes
- locales-all
- shared-mime-info
- ttf-ubuntu-font-family
- xdg-user-dirs
sweethome3d-homedesign:
after: [desktop-glib-only]
plugin: nil
source: .
override-build: |
mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui
tar xzf SweetHome3D*.tgz -C $SNAPCRAFT_PART_INSTALL/
mv $SNAPCRAFT_PART_INSTALL/SweetHome3D-* $SNAPCRAFT_PART_INSTALL/sweethome3d
chmod +x $SNAPCRAFT_PART_INSTALL/sweethome3d/SweetHome3D
cp ./data/gui/* $SNAPCRAFT_PART_INSTALL/meta/gui/
stage-packages:
# Dependencies of jre8 bundled with sh3d
- libasound2
- libcups2
- libfontconfig1
- libfreetype6
- libgif7
- libgl1
- libjpeg8
- liblcms2-2
- libnss3
- libpcsclite1
- libpng16-16
- libx11-6
- libxext6
- libxi6
- libxrender1
- libxtst6
- util-linux
build-packages:
- tar