mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-09 15:19:58 +01:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5923 bfdf4180-ca20-0410-9c96-a3a8aa849046
98 lines
2.9 KiB
YAML
98 lines
2.9 KiB
YAML
name: qelectrotech
|
|
title: QElectroTech
|
|
icon: qelectrotech.png
|
|
base: core18
|
|
adopt-info: qelectrotech
|
|
summary: Electrical diagram editor
|
|
description: |
|
|
QElectroTech is a Qt5 application to design electric diagrams.
|
|
It uses XML files for elements and diagrams, and includes both a diagram
|
|
editor, an element editor, and a titleblock editor.
|
|
|
|
grade: devel
|
|
confinement: strict
|
|
|
|
layout:
|
|
/usr/local/share/qelectrotech:
|
|
bind: $SNAP/usr/local/share/qelectrotech
|
|
|
|
plugs:
|
|
gtk-3-themes:
|
|
interface: content
|
|
target: $SNAP/data-dir/themes
|
|
default-provider: gtk-common-themes
|
|
icon-themes:
|
|
interface: content
|
|
target: $SNAP/data-dir/icons
|
|
default-provider: gtk-common-themes
|
|
sound-themes:
|
|
interface: content
|
|
target: $SNAP/data-dir/sounds
|
|
default-provider: gtk-common-themes
|
|
|
|
apps:
|
|
qelectrotech:
|
|
command: desktop-launch $SNAP/usr/local/bin/qelectrotech
|
|
desktop: usr/local/share/applications/qelectrotech.desktop
|
|
plugs: [opengl, x11, unity7, wayland, desktop, home, removable-media, gsettings, network]
|
|
environment:
|
|
__EGL_VENDOR_LIBRARY_DIRS: $SNAP/usr/share/glvnd/egl_vendor.d
|
|
QT_QPA_PLATFORMTHEME: gtk3
|
|
|
|
parts:
|
|
desktop-qt5:
|
|
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
|
source-subdir: qt
|
|
plugin: make
|
|
make-parameters: ["FLAVOR=qt5"]
|
|
build-packages:
|
|
- build-essential
|
|
- qtbase5-dev
|
|
- dpkg-dev
|
|
stage-packages:
|
|
- libxkbcommon0
|
|
- ttf-ubuntu-font-family
|
|
- dmz-cursor-theme
|
|
- light-themes
|
|
- adwaita-icon-theme
|
|
- gnome-themes-standard
|
|
- shared-mime-info
|
|
- libqt5gui5
|
|
- libgdk-pixbuf2.0-0
|
|
- libqt5svg5 # for loading icon themes which are svg
|
|
- try: [appmenu-qt5] # not available on core18
|
|
- locales-all
|
|
- xdg-user-dirs
|
|
- fcitx-frontend-qt5
|
|
|
|
qelectrotech:
|
|
plugin: qmake
|
|
source: svn://svn.tuxfamily.org/svnroot/qet/qet/trunk
|
|
override-pull: |
|
|
snapcraftctl pull
|
|
revision=$(svn --xml info | grep revision=\" | tail -1 | cut -d\" -f2)
|
|
version=$(cat sources/qet.h |grep "const QString version" | cut -d\" -f2 | cut -d\" -f1)
|
|
tag=$(cat sources/qet.h | grep displayedVersion | cut -d\" -f2 | cut -d\" -f1)
|
|
snapcraftctl set-version "$tag~svn$revision"
|
|
override-stage: |
|
|
snapcraftctl stage
|
|
# patch desktop file with correct icon path
|
|
SED_CMD="sed -i -E s|^Icon=(.*)|Icon=\${SNAP}/usr/local/share/icons/hicolor/128x128/apps/\1.png|g"
|
|
$SED_CMD usr/local/share/applications/qelectrotech.desktop
|
|
build-packages:
|
|
- g++
|
|
- qttools5-dev-tools
|
|
- libqt5svg5-dev
|
|
- libkf5widgetsaddons-dev
|
|
- libkf5coreaddons-dev
|
|
stage-packages:
|
|
- qtwayland5
|
|
- qt5-gtk-platformtheme
|
|
- libkf5coreaddons5
|
|
- libkf5widgetsaddons5
|
|
- libqt5concurrent5
|
|
- libqt5printsupport5
|
|
- libqt5sql5
|
|
- libqt5xml5
|
|
- libfam0
|
|
- libqt5sql5-sqlite |