LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File appimage.yml of Package tageditor (Project home:mkittler:appimage:vcs)

app: tageditor

build:
  packages:
    - git
    - linuxdeployqt
    - breeze5-icons
    - gcc6-c++
    - zlib-devel
    - libqt5-qtbase-devel
    - libqt5-qttools-devel
    - libqt5-qtsvg-devel
    - libqt5-qtdeclarative-devel
    - libqt5-qttranslations
  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/tagparser.git
    - https://github.com/Martchus/qtutilities.git
    - https://github.com/Martchus/tageditor.git
    - https://github.com/Martchus/subdirs.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-6
  - export CXX=g++-6
  - cmake -DCMAKE_BUILD_TYPE='Release' -DCMAKE_INSTALL_PREFIX='/usr' -DWIDGETS_GUI='ON' -DJS_PROVIDER='qml' -DWEBVIEW_PROVIDER='none' -DENABLE_JSON_EXPORT='OFF' -DBUILTIN_TRANSLATIONS='ON' -DBUILTIN_ICON_THEMES='breeze;breeze-dark' -DENABLE_QT_TRANSLATIONS='ON' "$BUILD_SOURCE_DIR/subdirs/tageditor"
  - make DESTDIR="$BUILD_APPDIR" VERBOSE=1 install -j$(nproc)
  - linuxdeployqt "$BUILD_APPDIR/usr/share/applications/tageditor.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/tagparser" "$BUILD_APPDIR/usr/share/tageditor" "$BUILD_APPDIR/usr/lib/pkgconfig" "$BUILD_APPDIR/usr/include"