<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">If you refer to <a href="http://snapcraft.io/create">http://snapcraft.io/create</a> it mentions the different directories and their uses:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif">"</span><font face="arial, helvetica, sans-serif">parts/ contains one subdirectory for each part: gnu-bash and gnu-hello. Each part's subdirectory has a src/ directory (to where the code is pulled), build/ where the build happens, and install/ where make install is processed.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">stage/ is where all the content from parts/<part_name>/install is copied and consolidated in a single directory.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">prime/ is the actual snap content. The stage/ directory is copied there. Binaries are stripped, wrappers are generated by Snapcraft, and the snap metadata files are also generated there. The final .snap file is just a squashfs archive of this prime/ directory. You can use and debug the snap's content from here"</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">So you need to get the "make" process to deliver the binaries to the "</font><span style="font-family:arial,helvetica,sans-serif">parts/<part_name>/install" directory. In your case, this can be done via:</span></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> - IPEPREFIX=../../../install</font><br></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">(there's probably a more elegant way of getting path, but that seems to work</font><span style="font-family:arial,helvetica,sans-serif">).</span></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Then, you need to make sure that the command to launch the app is correct. In your case, this looks like:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">apps:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">    ipe:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">        command: bin/ipe<br></font></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif">With those changes, I was able to get a </span><font face="arial, helvetica, sans-serif">ipe_7.2.5_amd64.snap file built. You can then install it using:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> sudo snap install ipe_7.2.5_amd64.snap</font></div><div class="gmail_default"><br></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 July 2016 at 14:52, Dietmar Winkler <span dir="ltr"><<a href="mailto:dietmar.winkler@dwe.no" target="_blank">dietmar.winkler@dwe.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm currently trying to buld my first snap. With the help of the<br>
#snappy irc channel I could finally create a snapp package but it<br>
seems to be empty and non of the binary are actually contained.<br>
<br>
Running `snapcraft` on<br>
<a href="https://github.com/dietmarw/snaps/blob/master/ipe/snapcraft.yaml" rel="noreferrer" target="_blank">https://github.com/dietmarw/snaps/blob/master/ipe/snapcraft.yaml</a><br>
<br>
generates this structure:<br>
<a href="https://gist.github.com/dietmarw/422354f1906bcb2babacd0168349ea55" rel="noreferrer" target="_blank">https://gist.github.com/dietmarw/422354f1906bcb2babacd0168349ea55</a><br>
<br>
Doing `sudo snapcraft install`  then gives<br>
<a href="https://gist.github.com/dietmarw/7622ba197f64b4b89dbc79b60b86d348" rel="noreferrer" target="_blank">https://gist.github.com/dietmarw/7622ba197f64b4b89dbc79b60b86d348</a><br>
<br>
One thing that threw snapcraft earlier was the definition of<br>
"IPEPREFIX" . But that is needed by the Makefile of the project.<br>
Setting it to something that is writable by the user running snapcraft<br>
was the only way to get it working. I've ended up using<br>
<br>
IPEPREFIX=$SNAPCRAFT_STAGE<br>
<br>
(as mentioned in<br>
<a href="https://developer.ubuntu.com/en/snappy/build-apps/snapcraft-advanced-features/" rel="noreferrer" target="_blank">https://developer.ubuntu.com/en/snappy/build-apps/snapcraft-advanced-features/</a>)<br>
<br>
but still don't know if this is the correct "installation" directory<br>
as required by the Makefile.<br>
<br>
The snap is supposed to just compile ipe just like described here:<br>
<a href="https://github.com/otfried/ipe-wiki/wiki/Downloading,%20Compiling,%20and%20Installing%20Ipe#debian-ubuntu-mint" rel="noreferrer" target="_blank">https://github.com/otfried/ipe-wiki/wiki/Downloading,%20Compiling,%20and%20Installing%20Ipe#debian-ubuntu-mint</a><br>
<br>
which works without problems.<br>
<br>
I'm a but at a loss of what it is I'm doing wrong. Also snapcraft is<br>
not really reporting any problems or what is missing :-(<br>
<br>
Anyone got an idea what is missing?<br>
<br>
--<br>
/Dietmar/<br>
<br>
Secure email communication:<br>
<a href="https://encrypt.to/dietmar.winkler@dwe.no" rel="noreferrer" target="_blank">https://encrypt.to/dietmar.winkler@dwe.no</a><br>
Public OpenPGP key: 0x235E6689<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snapcraft</a><br>
</font></span></blockquote></div><br></div>