[neon/snap-packaging/okular-snap] /: Copy snap to here so we don't have to wait on MRs
Scarlett Moore
null at kde.org
Thu Jun 13 15:47:08 BST 2024
Git commit 2597f79438c35074e3a3f891b85e03eeaa845a1d by Scarlett Moore.
Committed on 13/06/2024 at 14:46.
Pushed by scarlettmoore into branch 'master'.
Copy snap to here so we don't have to wait on MRs
A +8 -0 debian/.gitlab-ci-neon.yml
A +4 -0 snap/local/launchers/speechd
A +261 -0 snapcraft.yaml
https://invent.kde.org/neon/snap-packaging/okular-snap/-/commit/2597f79438c35074e3a3f891b85e03eeaa845a1d
diff --git a/debian/.gitlab-ci-neon.yml b/debian/.gitlab-ci-neon.yml
new file mode 100644
index 0000000..ab2589a
--- /dev/null
+++ b/debian/.gitlab-ci-neon.yml
@@ -0,0 +1,8 @@
+# SPDX-FileCopyrightText: none
+# SPDX-License-Identifier: CC0-1.0
+
+include:
+ - project: sysadmin/ci-utilities
+ file:
+# - /gitlab-templates/snap-snapcraft-destructive.yml
+ - /gitlab-templates/snap-snapcraft-lxd.yml
diff --git a/snap/local/launchers/speechd b/snap/local/launchers/speechd
new file mode 100755
index 0000000..c53c37c
--- /dev/null
+++ b/snap/local/launchers/speechd
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+#Run speech-dispatcher for speech support.
+speech-dispatcher -d
diff --git a/snapcraft.yaml b/snapcraft.yaml
new file mode 100644
index 0000000..b6f05cd
--- /dev/null
+++ b/snapcraft.yaml
@@ -0,0 +1,261 @@
+# SPDX-FileCopyrightText: 2024 Scarlett Moore <sgmoore at kde.org>
+#
+# SPDX-License-Identifier: CC0-1.0
+---
+name: okular
+confinement: strict
+grade: stable
+base: core22
+adopt-info: okular
+apps:
+ okular:
+ extensions:
+ - kde-neon-6
+ common-id: org.kde.okular.desktop
+ desktop: usr/share/applications/org.kde.okular.desktop
+ command: usr/bin/okular
+ plugs:
+ - home
+ - cups
+ - removable-media
+ - system-packages-doc
+ - udisks2
+ command-chain:
+ #- bin/speechd
+ - snap/command-chain/desktop-launch6
+slots:
+ session-dbus-interface:
+ interface: dbus
+ name: org.kde.okular
+ bus: session
+package-repositories:
+- type: apt
+ components:
+ - main
+ suites:
+ - jammy
+ key-id: 444DABCF3667D0283F894EDDE6D4736255751E5D
+ url: http://origin.archive.neon.kde.org/user
+ key-server: keyserver.ubuntu.com
+parts:
+ launchers:
+ source: snap/local/launchers
+ plugin: dump
+ organize:
+ '*': bin/
+ libgpgmepp-qt6:
+ build-packages:
+ - libassuan-dev
+ - libgpg-error-dev
+ - rsync
+ stage-packages:
+ - libassuan0
+ - libgpg-error0
+ source: https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.23.2.tar.bz2
+ source-checksum: sha256/9499e8b1f33cccb6815527a1bc16049d35a6198a6c5fae0185f2bd561bce5224
+ plugin: autotools
+ autotools-configure-parameters:
+ - --disable-gpgsm-test
+ - --enable-languages=cpp,qt6
+ - --prefix=/usr
+ - --enable-fixed-path=/snap/kde-qt6-core22-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+ build-environment:
+ - LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/snap/kde-qt6-core22-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/snap/kf6-core22-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:$CRAFT_STAGE/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR:/usr
+ - PKG_CONFIG_PATH: /snap/kde-qt6-core22-sdk/current/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig
+ override-build: |
+ craftctl default
+ rsync -a --ignore-existing $CRAFT_PART_INSTALL/ /
+ poppler:
+ after:
+ - libgpgmepp-qt6
+ plugin: cmake
+ source: https://poppler.freedesktop.org/poppler-24.06.0.tar.xz
+ build-packages:
+ - cmake
+ - libfreetype6-dev
+ - libfontconfig1-dev
+ - libjpeg-dev
+ - zlib1g-dev
+ - libnss3-dev
+ - liblcms2-dev
+ - libcurl4-nss-dev
+ - libopenjp2-7-dev
+ - libboost-dev
+ stage-packages:
+ - libasn1-8-heimdal
+ - libbrotli1
+ - libcurl3-nss
+ - libdouble-conversion3
+ - libfontconfig1
+ - libfreetype6
+ - libgl1
+ - libglvnd0
+ - libglx0
+ - libgraphite2-3
+ - libgssapi3-heimdal
+ - libharfbuzz0b
+ - libhcrypto4-heimdal
+ - libheimbase1-heimdal
+ - libheimntlm0-heimdal
+ - libhx509-5-heimdal
+ - libicu70
+ - libjbig0
+ - libjpeg-turbo8
+ - libkrb5-26-heimdal
+ - liblcms2-2
+ - libldap-2.5-0
+ - libnghttp2-14
+ - libnspr4
+ - libnss3
+ - libpcre2-16-0
+ - libpng16-16
+ - libpsl5
+ - libroken18-heimdal
+ - librtmp1
+ - libsasl2-2
+ - libssh-4
+ - libtiff5
+ - libwebp7
+ - libwind0-heimdal
+ - libx11-6
+ - libxau6
+ - libxcb1
+ - libxdmcp6
+ - libmd4c0
+ - libopenjpip7
+ cmake-parameters:
+ - -DCMAKE_INSTALL_PREFIX=/usr
+ - -DCMAKE_BUILD_TYPE=Release
+ - -DQT_MAJOR_VERSION=6
+ - -DENABLE_QT5=OFF
+ - -DENABLE_QT6=ON
+ - -DBUILD_TESTING=OFF
+ - -DCMAKE_INSTALL_SYSCONFDIR=/etc
+ - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
+ - -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
+ - -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
+ - -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
+ - -DCMAKE_INSTALL_RUNSTATEDIR=/run
+ - -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
+ - -DCMAKE_VERBOSE_MAKEFILE=ON
+ - -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+ - --log-level=STATUS
+ - -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+ override-build: |
+ craftctl default
+ rsync -a --ignore-existing $CRAFT_PART_INSTALL/ /
+ mobipocket:
+ after:
+ - poppler
+ source: https://invent.kde.org/graphics/kdegraphics-mobipocket.git
+ source-branch: release/24.05
+ plugin: cmake
+ cmake-parameters:
+ - -DCMAKE_INSTALL_PREFIX=/usr
+ - -DCMAKE_BUILD_TYPE=Release
+ - -DQT_MAJOR_VERSION=6
+ - -DBUILD_WITH_QT6=ON
+ - -DBUILD_TESTING=OFF
+ - -DCMAKE_INSTALL_SYSCONFDIR=/etc
+ - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
+ - -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
+ - -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
+ - -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
+ - -DCMAKE_INSTALL_RUNSTATEDIR=/run
+ - -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
+ - -DCMAKE_VERBOSE_MAKEFILE=ON
+ - -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+ - --log-level=STATUS
+ - -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+ prime:
+ - -usr/lib/*/cmake/*
+ - -usr/include/*
+ - -usr/share/ECM/*
+ - -usr/share/man/*
+ - -usr/share/icons/breeze-dark*
+ - -usr/bin/X11
+ - -usr/lib/gcc/$SNAPCRAFT_ARCH_TRIPLET/6.0.0
+ - -usr/lib/aspell/*
+ - -usr/share/lintian
+ okular:
+ after:
+ - mobipocket
+ - poppler
+ parse-info:
+ - usr/share/metainfo/org.kde.okular.appdata.xml
+ plugin: cmake
+ build-packages:
+ - cmake
+ - libchm-dev
+ - libdjvulibre-dev
+ - libepub-dev
+ - libfreetype6-dev
+ - libjpeg-dev
+ - libspectre-dev
+ - libtiff5-dev
+ - libxkbcommon-dev
+ - pkg-config
+ - zlib1g-dev
+ - libzip-dev
+ - libmarkdown2-dev
+ - libspeechd-dev
+ stage-packages:
+ - cups-bsd
+ - ghostscript
+ - libchm1
+ - libdjvulibre21
+ - libepub0
+ - libspectre1
+ - libtiffxx5
+ - libxkbcommon0
+ - freeglut3
+ - libglu1-mesa
+ - libmarkdown2
+ - xdg-desktop-portal
+ - libfuse3-3
+ - libspeechd2
+ - speech-dispatcher
+ - espeak
+ source: .
+ source-type: local
+ cmake-parameters:
+ - -DCMAKE_INSTALL_PREFIX=/usr
+ - -DCMAKE_BUILD_TYPE=Release
+ - -DQT_MAJOR_VERSION=6
+ - -DBUILD_WITH_QT6=ON
+ - -DBUILD_TESTING=OFF
+ - -DCMAKE_INSTALL_SYSCONFDIR=/etc
+ - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
+ - -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON
+ - -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
+ - -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON
+ - -DCMAKE_INSTALL_RUNSTATEDIR=/run
+ - -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON
+ - -DCMAKE_VERBOSE_MAKEFILE=ON
+ - -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+ - --log-level=STATUS
+ - -DCMAKE_LIBRARY_PATH=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
+ prime:
+ - -usr/lib/*/cmake/*
+ - -usr/include/*
+ - -usr/share/ECM/*
+ - -usr/share/man/*
+ - -usr/share/icons/breeze-dark*
+ - -usr/bin/X11
+ - -usr/lib/gcc/$SNAPCRAFT_ARCH_TRIPLET/6.0.0
+ - -usr/lib/aspell/*
+ - -usr/share/lintian
+ cleanup:
+ after:
+ - okular
+ plugin: nil
+ build-snaps:
+ - core22
+ - kf6-core22
+ override-prime: |
+ set -eux
+ for snap in "core22" "kf6-core22"; do
+ cd "/snap/$snap/current" && find . -type f,l -exec rm -rf "${CRAFT_PRIME}/{}" \;
+ done
+
+
More information about the Neon-commits
mailing list