File appimage.yml of Package NoteKit
# Recipe for the AppImage (on OBS) build of NoteKit
# Copyright (C) 2020 sp1rit <sp1ritCS@protonmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
app: notekit
build:
packages:
- linuxdeployqt
- gcc-c++
- meson
- pkgconfig
# - clatexmath-devel
- pkgconfig(gtkmm-3.0)
- pkgconfig(gtksourceviewmm-3.0)
- pkgconfig(jsoncpp)
- pkgconfig(zlib)
- pkgconfig(fontconfig)
git:
- https://github.com/NanoMichael/cLaTeXMath.git
- https://github.com/blackhole89/notekit.git
script:
# cLaTeXMath
- meson $BUILD_SOURCE_DIR/cLaTeXMath/ $BUILD_SOURCE_DIR/cLaTeXMath/_build --prefix=/usr
- ninja -C $BUILD_SOURCE_DIR/cLaTeXMath/_build
- meson install -C $BUILD_SOURCE_DIR/cLaTeXMath/_build
# NoteKit
- meson $BUILD_SOURCE_DIR/notekit/ $BUILD_SOURCE_DIR/notekit/_build --prefix=/usr
- ninja -C $BUILD_SOURCE_DIR/notekit/_build
- DESTDIR=$BUILD_APPDIR meson install -C $BUILD_SOURCE_DIR/notekit/_build
# create the image file
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/com.github.blackhole89.notekit.desktop -bundle-non-qt-libs -no-strip
- find $BUILD_APPDIR/