Please help me with my snap

Hello, I am trying to create a snap but find it impossible to understand and to find information. So I am asking for your help. This is my file:

name: gosim
version: “0.20”
summary: Block diagram simulator, like simulink
description: GoSim is a block diagram simulator similar to Simulink. Is uses GNU Octave as
a mathematical engine.
grade: stable
confinement: devmode
apps:
gosim:
command: gosim
parts:
gosim:
plugin: gradle
source: .
install: /home/cr/Skrivbord/Ny mapp/GoSim/

The program is a java jar, and two folders, one folder is empty and the other have octave .m files in it. I would like the map containing this to be snapped.

It needs Octave to run but let’s not do that at first, just installing the jar file and assuming octave is installed is enough for now.

Thanks in advance.

I get this error when I run snapcraft:

Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
File “/usr/bin/snapcraft”, line 9, in
load_entry_point(‘snapcraft==2.43.1’, ‘console_scripts’, ‘snapcraft’)()
File “/usr/lib/python3/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1037, in invoke
return Command.invoke(self, ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py”, line 93, in run
ctx.forward(lifecyclecli.commands[“snap”])
File “/usr/lib/python3/dist-packages/click/core.py”, line 552, in forward
return self.invoke(cmd, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py”, line 136, in snap
project = _execute(steps.PRIME, parts=[], **kwargs)
File “/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py”, line 35, in _execute
lifecycle.execute(step, project_config, parts)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 90, in execute
executor.run(step, part_names)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 194, in run
self._handle_step(part_names, part, step, current_step, cli_config)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 208, in _handle_step
getattr(self, “run{}”.format(current_step.name))(part)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 261, in _run_build
self._run_step(step=steps.BUILD, part=part, progress=“Building”)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 327, in _run_step
getattr(part, step.name)()
File “/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/init.py”, line 520, in build
ignore=ignore,
File “/usr/lib/python3.5/shutil.py”, line 353, in copytree
raise Error(errors)
shutil.Error: [(’/home/cr/parts/gosim/src/.gnupg/S.gpg-agent’, ‘/home/cr/parts/gosim/build/.gnupg/S.gpg-agent’, “[Errno 6] No such device or address: ‘/home/cr/parts/gosim/src/.gnupg/S.gpg-agent’”)]
We would appreciate it if you created a bug report at
https://launchpad.net/snapcraft/+filebug with the above text included.

The install keyword is deprecated, please use the override-build scriptlet. Also the value makes no sense.

where can I find info about override build and what values make sense?

Refer Scriptlets for the usage of override-* keywords.

I have updated my file to and still get an error, this is the file and error:

FILE:

name: gosim
version: “0.20”
summary: Block diagram simulator, like simulink
description: GoSim is a block diagram simulator similar to Simulink. Is uses GNU Octave as a mathematical engine.
grade: stable
confinement: devmode
apps:
gosim:
command: gosim
parts:
gosim:
plugin: gradle
source: .
override-build: |
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
gradle release -x test -x createGitTag
unzip /home/cr/Skrivbord/Nymapp/GoSim.zip -d $SNAPCRAFT_PART_INSTALL/
build-packages:
- unzip
- openjdk-8-jdk

ERROR:

Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
File “/usr/bin/snapcraft”, line 9, in
load_entry_point(‘snapcraft==2.43.1’, ‘console_scripts’, ‘snapcraft’)()
File “/usr/lib/python3/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1037, in invoke
return Command.invoke(self, ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py”, line 93, in run
ctx.forward(lifecyclecli.commands[“snap”])
File “/usr/lib/python3/dist-packages/click/core.py”, line 552, in forward
return self.invoke(cmd, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py”, line 136, in snap
project = _execute(steps.PRIME, parts=[], **kwargs)
File “/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py”, line 35, in _execute
lifecycle.execute(step, project_config, parts)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 90, in execute
executor.run(step, part_names)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 194, in run
self._handle_step(part_names, part, step, current_step, cli_config)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 208, in _handle_step
getattr(self, “run{}”.format(current_step.name))(part)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 261, in _run_build
self._run_step(step=steps.BUILD, part=part, progress=“Building”)
File “/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py”, line 327, in _run_step
getattr(part, step.name)()
File “/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/init.py”, line 520, in build
ignore=ignore,
File “/usr/lib/python3.5/shutil.py”, line 353, in copytree
raise Error(errors)
shutil.Error: [(’/home/cr/parts/gosim/src/.gnupg/S.gpg-agent’, ‘/home/cr/parts/gosim/build/.gnupg/S.gpg-agent’, “[Errno 6] No such device or address: ‘/home/cr/parts/gosim/src/.gnupg/S.gpg-agent’”)]
We would appreciate it if you created a bug report at
https://launchpad.net/snapcraft/+filebug with the above text included.

please help