File appimage.yml of Package KlimadeOS
#
# This is an example template how to build an AppImage in Open Build Service (OBS)
#
# leafpad is a small GTK+ application
app: leafpad
# resources required at build time
build:
# packages which get installed in the build enviroment. Not part of the resulting image.
packages:
- linuxdeployqt
- intltool
- gtk2-devel
- glib2-devel
# resources which will become available as part of the source. The "appimage" source service
# needs to be enabled to process these.
git:
- https://github.com/oluc/leafpad.git
# hg:
# - ....
# svn:
# - ....
# OPTIONAL: ingredient packages are packages which become part of the AppImage.
#ingredients:
# packages:
# - leafpad
# OPTIONAL: compile or modify the AppDir. The environment variables:
# - $BUILD_SOURCE_DIR point to the source directory
# - $BUILD_APPDIR point to the AppDir. This directory will become the content of the AppImage
script:
- cd $BUILD_SOURCE_DIR/leafpad*
- ./configure --prefix=/usr
- make -j4
- make install DESTDIR=$(readlink -f $BUILD_APPDIR) ; find $BUILD_APPDIR/
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/leafpad.desktop -bundle-non-qt-libs
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/leafpad.desktop -bundle-non-qt-libs
- find $BUILD_APPDIR/