From ee1d28d7af46ea1785b18144cd7f6fd413cd6203 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sat, 20 Mar 2021 17:00:04 -0700 Subject: [PATCH] Snap config. --- .gitignore | 3 ++- snapcraft.yaml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 snapcraft.yaml diff --git a/.gitignore b/.gitignore index a8a4bb2c..64e8d7fe 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,5 @@ povray uic_wrapper.bat /tools/setup/*.exe appdir -LeoCAD-Windows*.exe \ No newline at end of file +LeoCAD-Windows*.exe +*.snap diff --git a/snapcraft.yaml b/snapcraft.yaml new file mode 100644 index 00000000..39238534 --- /dev/null +++ b/snapcraft.yaml @@ -0,0 +1,41 @@ +name: leocad +base: core18 +adopt-info: leocad +version: '21.03' + +grade: stable +confinement: strict + +apps: + leocad: + common-id: org.leocad.LeoCAD + command: leocad + plugs: + - home + - opengl + - network + extensions: + - kde-neon + +parts: + leocad: + plugin: qmake + build-packages: + - qtbase5-dev + - qttools5-dev-tools + - libqt5opengl5-dev + - zlib1g-dev + stage-packages: + - libqt5opengl5 + - libqt5gui5 + - libqt5concurrent5 + - libqt5printsupport5 + - libqt5xml5 + source: https://github.com/leozide/leocad/archive/v21.03.tar.gz + parse-info: [usr/share/metainfo/leocad.appdata.xml] + library: + source: . + plugin: nil + override-build: | + mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/leocad + cp library.bin $SNAPCRAFT_PART_INSTALL/usr/share/leocad/library.bin