Is there a German howto/documentation for snapcraft?
Ralf Mardorf
silver.bullet at zoho.com
Tue Jul 12 00:56:53 UTC 2016
Hi,
I don't understand how to build a snap.
Is there a German howto/documentation for snapcraft?
Here is what I tried [1].
I guess I confused stage-packages [1] with build-packages, anyway, were
do I need to add the build-packages?
Perhaps like that:
parts:
qjackctl:
source: qjackctl-0.4.2-r13-g5a8f67fc
build-packages:
[libasound2-dev, libjack-dev, libfoo-dev, libbar-dev]
configflags:
CFLAGS = -Wall -g
export QTDIR=/usr/share/qt5
export QT_SELECT=qt5
[snip]
Is there a way to depend on JACK1 or JACK2 outside of the snap? IOW to
use the snap with JACK of the regular Ubuntu install?
As you can see a script generates my snapcraft.yaml. Is it possible to
clone and get the version number within the snapcraft.yaml?
Regards,
Ralf
[1]
[weremouse at moonstudio qjackctl]$ ls -hAl
total 16K
-rwxrwxr-x 1 weremouse weremouse 1.2K Jul 12 01:57 make_qjackctl-git_yaml.sh
drwxrwxr-x 5 weremouse weremouse 4.0K Jul 12 01:58 qjackctl-0.4.2-r13-g5a8f67fc
drwxrwxr-x 3 weremouse weremouse 4.0K Jul 12 01:58 setup
-rw-rw-r-- 1 weremouse weremouse 806 Jul 12 01:58 snapcraft.yaml
[weremouse at moonstudio qjackctl]$ snapcraft snap
Issues while validating snapcraft.yaml: The 'stage-packages' property does not match the required schema: ['libasound2-dev', 'libjack-dev', 'qtbase5-dev', 'qttools5-dev-tools', 'libqt5x11extras5-dev', 'libx11-dev', 'jackd2', 'libasound2', 'libc6', 'libgcc1', 'libjack-jackd2-0', 'libqt5core5a', 'libqt5dbus5', 'libqt5gui5', 'libqt5widgets5', 'libqt5x11extras5', 'libqt5xml5', 'libstdc++6', 'libstdc++6', 'libx11-6'] has non-unique elements
[weremouse at moonstudio qjackctl]$ head -n5 make_qjackctl-git_yaml.sh
#!/bin/dash
yaml() {
cat<<EOF
name: qjackctl-git
[weremouse at moonstudio qjackctl]$ tail -n12 make_qjackctl-git_yaml.sh
EOF
}
git clone git://git.code.sf.net/p/qjackctl/code qjackctl
cd qjackctl
qjackctl_version=$(git describe --abbrev=8|cut -f2 -d"l"|sed -r 's/^.//;s/_/./g;s/([^-]*-g)/r\1/')
mv ../qjackctl ../qjackctl-$qjackctl_version
mkdir -p ../setup/gui
ln -s ../../qjackctl-$qjackctl_version/src/images/qjackctl.png ../setup/gui/qjackctl.png
yaml > ../snapcraft.yaml
exit
[weremouse at moonstudio qjackctl]$ cat snapcraft.yaml
name: qjackctl-git
version: 0.4.2-r13-g5a8f67fc
summary: QjackCtl
description: QjackCtl offers a Qt front-end for the JACK low-latency audio server.
confinement: strict
apps:
qjackctl:
command: bin/qjackctl
parts:
qjackctl:
source: qjackctl-0.4.2-r13-g5a8f67fc
configflags:
CFLAGS = -Wall -g
export QTDIR=/usr/share/qt5
export QT_SELECT=qt5
stage-packages:
- libasound2-dev
- libjack-dev
- qtbase5-dev
- qttools5-dev-tools
- libqt5x11extras5-dev
- libx11-dev
- jackd2
- libasound2
- libc6
- libgcc1
- libjack-jackd2-0
- libqt5core5a
- libqt5dbus5
- libqt5gui5
- libqt5widgets5
- libqt5x11extras5
- libqt5xml5
- libstdc++6
- libstdc++6
- libx11-6
[weremouse at moonstudio qjackctl]$ ls -Ggh setup/gui/
total 0
lrwxrwxrwx 1 58 Jul 12 01:58 qjackctl.png -> ../../qjackctl-0.4.2-r13-g5a8f67fc/src/images/qjackctl.png
More information about the Snapcraft
mailing list