Warning, /multimedia/subtitlecomposer/pkg/misc/appimage.yml is written in an unsupported language. File is not indexed.
0001 app: SubtitleComposer
0002
0003 build:
0004 packages:
0005 - linuxdeployqt # this one is segfaulting
0006 - libfuse2 # needed by linuxdeployqt AppImage
0007 - libudev-devel
0008 - cmake >= 3.10
0009 - extra-cmake-modules
0010 - pkgconfig
0011 - update-desktop-files
0012 - cmake(KF5Auth)
0013 - cmake(KF5Codecs)
0014 - cmake(KF5Config)
0015 - cmake(KF5ConfigWidgets)
0016 - cmake(KF5CoreAddons)
0017 - cmake(KF5I18n)
0018 - cmake(KF5KIO)
0019 - cmake(KF5Kross)
0020 - cmake(KF5Sonnet)
0021 - cmake(KF5TextWidgets)
0022 - cmake(KF5WidgetsAddons)
0023 - cmake(KF5XmlGui)
0024 - cmake(Qt5Core) >= 5.6
0025 - cmake(Qt5Gui)
0026 - cmake(Qt5Widgets)
0027 - libqt5-qtbase-private-headers-devel
0028 - pkgconfig(icu-i18n)
0029 - pkgconfig(icu-uc)
0030 - pkgconfig(openal)
0031 - breeze5-icons
0032 - sphinxbase5-devel
0033 - pocketsphinx5-devel
0034 - ffmpeg-devel >= 4.4
0035 - sonnet-voikko
0036 #- kross-ruby # crashes
0037 #- kross-python # crashes
0038 - plasma5-integration-plugin # plasma theme support
0039 - breeze # plasma theme support
0040 - oxygen5 # plasma theme support
0041 - adwaita-icon-theme # gnome theme support
0042 - gdk-pixbuf-loader-rsvg # gnome theme support
0043 - libqt5-qtstyleplugins-platformtheme-gtk2 # gnome theme support
0044 - libqt5-qtbase-platformtheme-gtk3 # gnome theme support
0045 - adwaita-qt5 # qt5 theme/style plugin
0046 - qt5ct # qt5 theme/style plugin
0047 - qtcurve-qt5 # qt5 theme/style plugin
0048
0049 script:
0050 - ### common vars
0051 - rpm -ql kio kio-core | grep libexec
0052 - app_version="0.7.0-1+test"
0053 - tar_file="$BUILD_SOURCE_DIR/subtitlecomposer-${app_version}.tar.xz"
0054 - src_dir="$BUILD_SOURCE_DIR/src"
0055 - build_dir="$BUILD_SOURCE_DIR/build"
0056 -
0057 - ### linuxdeployqt
0058 - linuxdeployqt="$BUILD_SOURCE_DIR/linuxdeployqt-continuous-x86_64.AppImage"
0059 - chmod +x "$linuxdeployqt"
0060 -
0061 - ### extract sources
0062 - mkdir -p "$src_dir" "$build_dir"
0063 - tar -xf "$tar_file" --strip-components=1 -C "$src_dir"
0064 - sed -i '/content_rating/d' "$src_dir/src/org.kde.subtitlecomposer.appdata.xml" # otherwise appstreamcli's validation fails
0065 -
0066 - ### build
0067 - cd "$build_dir"
0068 - cmake \
0069 - -DAPPIMAGE=1 \
0070 - -DCMAKE_BUILD_TYPE=Release \
0071 - -DCMAKE_INSTALL_PREFIX=/usr \
0072 - -DKDE_INSTALL_LIBDIR=lib \
0073 - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
0074 - -DBUILD_TESTING=OFF \
0075 - "$src_dir"
0076 - make
0077 -
0078 - ### install to AppDir
0079 - make DESTDIR="$BUILD_APPDIR" install
0080 - ldqtpars=(
0081 - "$BUILD_APPDIR/usr/share/applications/org.kde.subtitlecomposer.desktop"
0082 - -bundle-non-qt-libs
0083 - -verbose=2
0084 - )
0085 - # --- subtitle composer plugins
0086 - plugin_path="$BUILD_APPDIR/usr/lib/subtitlecomposer"
0087 - ldqtpars+=(`[ ! -d "$plugin_path" ] || find "$plugin_path" -name \*.so -printf '-executable=%p'`)
0088 - # --- qt5 plugins
0089 - ldqtplugins=(
0090 - platformthemes/libqgtk2.so
0091 - platformthemes/libqgtk3.so
0092 - platformthemes/KDEPlasmaPlatformTheme.so
0093 - platformthemes/libqt5ct.so
0094 - styles
0095 - kf5/kwindowsystem
0096 - kf5/sonnet
0097 - kf5/kio
0098 - )
0099 - # --- kross support
0100 - ldqtplugins+=(
0101 - script/krossqtsplugin.so
0102 - krossmoduleforms.so
0103 - krossmodulekdetranslation.so
0104 - krossqts.so
0105 - #krossruby.so # crashes
0106 - #krosspython.so # crashes
0107 - )
0108 - #install -m 0755 /usr/bin/kdeinit5 -D -T "$BUILD_APPDIR/usr/bin"
0109 - #install -m 0755 /usr/lib64/libexec/kf5/kioslave5 -D -T "$BUILD_APPDIR/usr/libexec/kf5/kioslave5"
0110 - #ldqtpars+=("-executable=$BUILD_APPDIR/usr/libexec/kf5/kioslave5")
0111 - # --- process AppDir
0112 - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
0113 - $linuxdeployqt "${ldqtpars[@]}" -extra-plugins="$(IFS=, ; echo "${ldqtplugins[*]}")"
0114 - # --- cleanup AppDir
0115 - rm -fv $BUILD_APPDIR/usr/lib/libxcb-dri[23].so*
0116 - install -m 0755 "$src_dir/pkg/misc/subtitlecomposer.sh" -T "$BUILD_APPDIR/AppRun"
0117 - # --- debug info
0118 - echo "*** AppImage plugins:" && find "$BUILD_APPDIR/usr/plugins"
0119 - echo "*** System plugins:" && find "/usr/lib64/qt5/plugins"