File appimage.yml of Package syncthingtray
app: syncthingtray
build:
packages:
- git
- linuxdeployqt
- breeze5-icons
- gcc8-c++
- libqt5-qtbase-devel
- libqt5-qttools-devel
- libqt5-qtsvg-devel
- libqt5-qtwebengine-devel
- libqt5-qttranslations
- perl-YAML-LibYAML
files:
- https://github.com/darealshinji/AppImageKit-checkrt/releases/download/continuous/exec-x86_64.so
- https://github.com/darealshinji/AppImageKit-checkrt/releases/download/continuous/AppRun-patched-x86_64
git:
- https://github.com/Martchus/cpp-utilities.git
- https://github.com/Martchus/qtutilities.git
- https://github.com/Martchus/qtforkawesome.git
- https://github.com/Martchus/syncthingtray.git
- https://github.com/Martchus/subdirs.git
- https://github.com/ForkAwesome/Fork-Awesome.git
script:
- mv "$BUILD_SOURCE_DIR/cpp-utilities" "$BUILD_SOURCE_DIR/c++utilities"
- mkdir -p "$BUILD_APPDIR/usr/optional"
- mv "$BUILD_SOURCE_DIR/exec-x86_64.so" "$BUILD_APPDIR/usr/exec.so"
- mkdir -p "$BUILD_APPDIR/usr/optional/libstdc++"
- cp --dereference "/usr/lib64/libstdc++.so.6" "$BUILD_APPDIR/usr/optional/libstdc++/libstdc++.so.6"
- mv "$BUILD_SOURCE_DIR/AppRun-patched-x86_64" "$BUILD_APPDIR/AppRun"
- chmod a+x "$BUILD_APPDIR/AppRun"
- mkdir "$BUILD_SOURCE_DIR/build"
- cd "$BUILD_SOURCE_DIR/build"
- export CC=gcc-8
- export CXX=g++-8
- cmake -DCMAKE_BUILD_TYPE='Release' -DCMAKE_INSTALL_PREFIX='/usr' -DUSE_NATIVE_FILE_BUFFER='OFF' -DWIDGETS_GUI='ON' -DQUICK_GUI='OFF' -DWEBVIEW_PROVIDER='webengine' -DUSE_BOOST_PROCESS='OFF' -DNO_CLI='ON' -DNO_FILE_ITEM_ACTION_PLUGIN='ON' -DNO_PLASMOID='ON' -DBUILTIN_TRANSLATIONS='ON' -DBUILTIN_ICON_THEMES='breeze;breeze-dark' -DENABLE_QT_TRANSLATIONS='ON' -DBUNDLED_QT_FORK_AWESOME_PATH="$BUILD_SOURCE_DIR/qtforkawesome" -DENABLE_QT_QUICK_LIBRARY='OFF' -DFORK_AWESOME_FONT_FILE="$BUILD_SOURCE_DIR/Fork-Awesome/fonts/forkawesome-webfont.ttf" -DFORK_AWESOME_ICON_DEFINITIONS="$BUILD_SOURCE_DIR/Fork-Awesome/src/icons/icons.yml" "$BUILD_SOURCE_DIR/subdirs/syncthingtray"
- make DESTDIR="$BUILD_APPDIR" VERBOSE=1 install -j$(nproc)
- linuxdeployqt "$BUILD_APPDIR/usr/share/applications/syncthingtray.desktop" -bundle-non-qt-libs -no-translations -extra-plugins=iconengines/libqsvgicon.so -verbose=2
- rm -r "$BUILD_APPDIR/usr/share/bash-completion" "$BUILD_APPDIR/usr/share/icons" "$BUILD_APPDIR/usr/share/c++utilities" "$BUILD_APPDIR/usr/share/qtutilities" "$BUILD_APPDIR/usr/share/syncthing"* "$BUILD_APPDIR/usr/lib/"*.a "$BUILD_APPDIR/usr/lib/pkgconfig" "$BUILD_APPDIR/usr/include" "$BUILD_APPDIR/usr/plugins/bearer/"
- head -n -3 "$BUILD_APPDIR/syncthingtray.desktop" > "$BUILD_APPDIR/syncthingtray.desktop.new"
- mv -f "$BUILD_APPDIR/syncthingtray.desktop.new" "$BUILD_APPDIR/syncthingtray.desktop"
- cp -f "$BUILD_APPDIR/syncthingtray.desktop" "$BUILD_APPDIR/usr/share/applications"