File appimage.yml of Package TeXmacs-QT5
app: texmacs
build:
packages:
- linuxdeployqt
- automake
- fdupes
- freetype2-devel
- gcc-c++
- ghostscript-devel
- libpng-devel
- lzma
- shared-mime-info
- update-desktop-files
- xorg-x11-devel
- xdg-utils
- git
# - libqt4-devel
# at this point (Jan. 2021) OBS still builds Appimages with
# OpenSuse leap 42.3, which has Qt5.6.
# qtstyleplugins & platformtheme appear at Qt5.7
# https://github.com/AppImage/pkg2appimage/issues/88#issuecomment-443490471
# - libqt5-qtstyleplugins-platformtheme-gtk2 #"nothing provides ..."
# not clear which packages add extra functionality...
- libqt5-qtbase
- libqt5-qtbase-devel
- libqt5-qtbase-common-devel
- libqt5-qtx11extras-devel
- libqt5-qtsvg-devel
- libqt5-qtimageformats
- libqt5-qtimageformats-devel
- libtool
- gmp-devel
- pkgconfig(sqlite3)
- pkgconfig(Qt5Svg)
- pkgconfig(Qt5Sql)
- pkgconfig(Qt5Gui)
- pkgconfig(Qt5Network)
- pkgconfig(Qt5Widgets)
- pkgconfig(Qt5PrintSupport)
- pkgconfig(Qt5X11Extras)
# when running the AppImage one may get GTK warnings
# but adding the packages below does not help.
# The Appimage runs well, nevertheless.
# - libatk-1_0-0
# - libatk-bridge-2_0-0
# - gtk2-devel
# - gtk2-engine-murrine
# - gtk2-engines
# - gtk2-engines-devel
# - gtk2-theme-oxygen
# - gtk2-theming-engine-adwaita
# - gtk2-tools
# TODO : test if adding packages on the host can clear the warning.
script:
- cd $BUILD_SOURCE_DIR
- echo This is the content of the build directory
- ls
- echo Extracting the source code
- tar -zxf TeXmacs-2.1.4.tar.gz
- echo This is the content of the build directory
- ls
- cd TeXmacs-2.1.4
- LDFLAGS="-pthread -ldl" ./configure --prefix=/usr --with-qt-find-method=pkgconfig --with-guile=embedded18
# - git --work-tree=. apply ../my_current.patch
#- patch -i ../equation-editor-plugin.patch -p1
- LDFLAGS="-pthread -ldl" make -j4
- make install DESTDIR=$(readlink -f $BUILD_APPDIR) ; find $BUILD_APPDIR/
- echo "QT_PLUGIN_PATH=${QT_PLUGIN_PATH}"
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- mv $BUILD_APPDIR/usr/libexec/TeXmacs/bin/* $BUILD_APPDIR/usr/bin
- rm -rf $BUILD_APPDIR/usr/libexec
#manually deploying qt plugins for now, see https://github.com/probonopd/linuxdeployqt/issues/82
- mkdir -p $BUILD_APPDIR/usr/plugins
- if ! [ -e /usr/plugins ]; then ln -s /usr/lib64/qt5/plugins /usr ; fi #needed for linux deployqt to find them ok. why?
- mkdir -p $BUILD_APPDIR/usr/share/guile/1.8
# - cp -rf /usr/share/guile/1.8/ice-9 $BUILD_APPDIR/usr/share/TeXmacs/progs/
- cp -rf tm-guile188/ice-9 $BUILD_APPDIR/usr/share/TeXmacs/progs/
- mkdir -p $BUILD_APPDIR/usr/share/metainfo/
- cp ../org.texmacs.texmacs.metainfo.xml $BUILD_APPDIR/usr/share/metainfo/
- mkdir -p $BUILD_APPDIR/usr/share/applications/
#- cp $BUILD_SOURCE_DIR/src/TeXmacs/misc/mime/texmacs.desktop $BUILD_APPDIR/usr/share/applications/texmacs.desktop
- cp ../org.texmacs.texmacs.desktop $BUILD_APPDIR/usr/share/applications/org.texmacs.texmacs.desktop
#fix intermittent bug https://github.com/probonopd/linuxdeployqt/issues/136#issuecomment-547797987
- cp $BUILD_APPDIR/usr/share/TeXmacs/misc/images/texmacs.svg $BUILD_APPDIR/texmacs.svg
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/org.texmacs.texmacs.desktop -bundle-non-qt-libs -verbose=3 -executable=$BUILD_APPDIR/usr/bin/texmacs.bin -no-strip
- rm $BUILD_APPDIR/AppRun ; cp $BUILD_SOURCE_DIR/AppRun.sh $BUILD_APPDIR/AppRun ; chmod a+x $BUILD_APPDIR/AppRun
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/org.texmacs.texmacs.desktop -appimage -verbose=3 -executable=$BUILD_APPDIR/usr/bin/texmacs.bin -no-strip
- find $BUILD_APPDIR/