Warning, /graphics/glaxnimate/deploy/snapcraft.in.yaml is written in an unsupported language. File is not indexed.
0001 # https://snapcraft.io/docs/snapcraft-yaml-reference 0002 0003 name: ${PROJECT_SLUG} 0004 title: ${PROJECT_NAME} 0005 base: core18 0006 #base: core20 0007 version: '${PROJECT_VERSION}' 0008 summary: ${PROJECT_DESCRIPTION} 0009 description: | 0010 An application to create and edit animations for the web and similar. 0011 0012 #icon: share/${PROJECT_SLUG}/${PROJECT_SLUG}/images/logo.svg 0013 icon: data/images/logo.svg 0014 grade: stable 0015 confinement: strict 0016 passthrough: 0017 license: GPL-3.0 0018 0019 apps: 0020 ${PROJECT_SLUG}: 0021 command: bin/${PROJECT_SLUG} 0022 desktop: share/applications/${PROJECT_ID}.desktop 0023 plugs: 0024 - desktop 0025 - desktop-legacy 0026 - wayland 0027 - unity7 0028 - home 0029 extensions: 0030 - kde-neon 0031 #command-chain: 0032 #- snap/command-chain/snapcraft-runner 0033 #- snap/command-chain/desktop-launch 0034 0035 #assumes: 0036 #- command-chain 0037 #environment: 0038 #SNAP_DESKTOP_RUNTIME: "$SNAP/kf5" 0039 #LD_LIBRARY_PATH: "$SNAP/opt:$LD_LIBRARY_PATH" 0040 #plugs: 0041 #icon-themes: 0042 #interface: content 0043 #target: $SNAP/data-dir/icons 0044 #default-provider: gtk-common-themes 0045 #kde-frameworks-5-plug: 0046 #interface: content 0047 #content: kde-frameworks-5-core18-all 0048 #target: $SNAP/kf5 0049 #default-provider: kde-frameworks-5-core18 0050 #sound-themes: 0051 #interface: content 0052 #target: $SNAP/data-dir/sounds 0053 #default-provider: gtk-common-themes 0054 0055 parts: 0056 ${PROJECT_SLUG}: 0057 source: . 0058 source-type: local 0059 #source: https://gitlab.com/mattbas/glaxnimate.git 0060 #source-type: git 0061 #source-branch: release 0062 plugin: cmake 0063 #build-packages: 0064 # - g++ 0065 # - cmake 0066 # - qtbase5-dev 0067 # - libpython3-dev 0068 # - zlib1g-dev 0069 # - make 0070 #stage-packages: 0071 # - libqt5xml5 0072 # - libqt5widgets5 0073 # - libpython3.8 0074 # - zlib1g 0075 # - libgtk3-nocsd0 0076 ## I think there's a better way of doing this? but documentation isn't clear 0077 ##override-stage: snapcraftctl stage; cp -r /root/parts/glaxnimate/install/usr/local/* /root/stage 0078 #override-prime: | 0079 # snapcraftctl prime 0080 # cp -r /root/parts/glaxnimate/install/usr/local/* /root/prime 0081 # #cp -r /opt /root/prime/opt 0082 build-packages: 0083 - libpython3-dev 0084 - zlib1g-dev 0085 - make 0086 - libpotrace-dev 0087 - libarchive-dev 0088 - libvpx-dev 0089 - x264 0090 stage-packages: 0091 - libpython3.6 0092 - zlib1g 0093 - libgtk3-nocsd0 0094 - libpotrace0 0095 - libarchive-dev 0096 - libvpx5 0097 - x264 0098 override-build: | 0099 # base 0100 apt-get update -qq 0101 apt-get install -y libpython3-dev python3-pip software-properties-common desktop-file-utils zlib1g-dev 0102 # updated packaged 0103 add-apt-repository ppa:beineri/opt-qt-5.15.2-bionic -y 0104 add-apt-repository ppa:ubuntu-toolchain-r/test -y 0105 apt update -qq 0106 apt-get install -y qt515base qt515tools qt515translations libgl1-mesa-dev g++-9 qt515svg 0107 pip3 install cmake 0108 export LD_LIBRARY_PATH=/opt/qt515/lib/ 0109 # ffmpeg 0110 apt-get install -y git build-essential nasm pkg-config 0111 git clone https://github.com/FFmpeg/FFmpeg.git --branch release/4.4 0112 cd FFmpeg/ 0113 ./configure --disable-static --enable-shared 0114 make -j4 0115 make install 0116 cd .. 0117 # build 0118 cmake $SNAPCRAFT_PART_SRC -DCMAKE_CXX_COMPILER=/usr/bin/g++-9 -DQt5_DIR=/opt/qt515/lib/cmake/Qt5 -DCMAKE_PREFIX_PATH=/opt/qt515/lib/cmake/Qt5LinguistTools/ 0119 make -j4 0120 make translations 0121 make install DESTDIR=$SNAPCRAFT_PART_INSTALL 0122 # I think there's a better way of doing this? but documentation isn't clear 0123 override-stage: | 0124 snapcraftctl stage 0125 cp -r $SNAPCRAFT_PART_INSTALL/usr/local/* $SNAPCRAFT_STAGE 0126 cp -r /usr/local/lib/* $SNAPCRAFT_STAGE/lib 0127 mkdir -p $SNAPCRAFT_STAGE/lib/x86_64-linux-gnu/ 0128 cp /usr/lib/x86_64-linux-gnu/libstdc++.so* $SNAPCRAFT_STAGE/lib/x86_64-linux-gnu/ 0129 override-prime: | 0130 snapcraftctl prime 0131 cp -r $SNAPCRAFT_PART_INSTALL/usr/local/* $SNAPCRAFT_PRIME 0132 cp -r /usr/local/lib/* $SNAPCRAFT_PRIME/lib 0133 cp -fr /opt/qt515/* $SNAPCRAFT_PRIME 0134 mkdir -p $SNAPCRAFT_PRIME/lib/x86_64-linux-gnu/ 0135 cp /usr/lib/x86_64-linux-gnu/libstdc++.so* $SNAPCRAFT_PRIME/lib/x86_64-linux-gnu/