From d830bfc8ce7c6763d074beafdde7cab1835d31f9 Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Tue, 7 Mar 2023 21:11:06 +0600 Subject: Import Upstream version 4.12.0 --- snap/gui/icon.png | Bin 0 -> 12301 bytes snap/gui/icon.svg | 81 +++++++++++++++++++++++++++++++++++ snap/snapcraft.yaml | 121 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 202 insertions(+) create mode 100644 snap/gui/icon.png create mode 100644 snap/gui/icon.svg create mode 100644 snap/snapcraft.yaml (limited to 'snap') diff --git a/snap/gui/icon.png b/snap/gui/icon.png new file mode 100644 index 0000000..2e5155d Binary files /dev/null and b/snap/gui/icon.png differ diff --git a/snap/gui/icon.svg b/snap/gui/icon.svg new file mode 100644 index 0000000..0b81505 --- /dev/null +++ b/snap/gui/icon.svg @@ -0,0 +1,81 @@ + +image/svg+xml \ No newline at end of file diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..0e0f1b5 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,121 @@ +name: whatsie +adopt-info: whatsie-build-src +summary: Qt Based WhatsApp Client +description: | + Fast Light weight WhatsApp Client based on Qt's WebEngine, With lots of settings and packed goodies. + +grade: stable +confinement: strict +icon: snap/gui/icon.svg +base: core20 +compression: lzo + +architectures: + - build-on: amd64 + run-on: amd64 + +environment: + SNAP_DESKTOP_RUNTIME: $SNAP/qt515-core20 + +package-repositories: + - type: apt + formats: [deb] + components: [main] + suites: [focal] + key-id: C65D51784EDC19A871DBDBB710C56D0DE9977759 + url: https://ppa.launchpadcontent.net/beineri/opt-qt-5.15.4-focal/ubuntu + +apps: + whatsie: + command: bin/desktop-launch $SNAP/usr/bin/whatsie + environment: + IS_SNAP: 1 + XDG_CURRENT_DESKTOP: $XDG_CURRENT_DESKTOP:Unity:Unity7 + LANG: en_US.UTF-8 # issue 7,21 + QT_QPA_PLATFORMTHEME: gtk3 + NO_AT_BRIDGE: 1 #delay ATK Bridge initialization + desktop: usr/share/applications/com.ktechpit.whatsie.desktop + plugs: + - browser-support + - camera + - desktop + - desktop-legacy + - gsettings + - home + - opengl + - audio-playback + - audio-record + - removable-media + - screen-inhibit-control + - unity7 + - x11 + - network + - wayland + - hardware-observe # to assist geoclue & qtpositioning + - network-observe # to assist geoclue & qtpositioning + - network-bind # to assist geoclue & qtpositioning + - mount-observe + +plugs: + gsettings: + gtk-3-themes: + interface: content + target: $SNAP/data-dir/themes + default-provider: gtk-common-themes + icon-themes: + interface: content + target: $SNAP/data-dir/icons + default-provider: gtk-common-themes + sound-themes: + interface: content + target: $SNAP/data-dir/sounds + default-provider: gtk-common-themes + qt515-core20: + interface: content + target: $SNAP/qt515-core20 + default-provider: qt515-core20 + +parts: + whatsie-build-src: + plugin: nil + source: https://github.com/keshavbhatt/whatsie.git + source-subdir: src/ + override-build: | + snapcraftctl build + + version="$(printf %s.%s $(git describe --tags --abbrev=0) $(git rev-parse --short HEAD))" + + snapcraftctl set-version "$version" + + apt install -y build-essential qt515base qt515tools qt515webengine qt515location qt515xmlpatterns libgl1-mesa-dev + + QT_BASE_DIR=/opt/qt515 + export QTDIR=$QT_BASE_DIR + export PATH=$QT_BASE_DIR/bin:$PATH + export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/$SNAPCRAFT_ARCH_TRIPLET:$QT_BASE_DIR/lib:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} + export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} + + PQMAKE=$(which qmake); + + echo "Using" $PQMAKE; + + echo $(${PQMAKE} --version) + + qmake PREFIX=${SNAPCRAFT_PART_INSTALL}/usr src + + make -j4 + + make install + + sed -i 's|Icon=.*|Icon=${SNAP}/meta/gui/icon.svg|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/com.ktechpit.whatsie.desktop + + desktop-launch: + plugin: nil + source: https://github.com/keshavbhatt/qt515-core20.git + after: [whatsie-build-src] + override-build: | + snapcraftctl build + + mkdir -p ${SNAPCRAFT_PART_INSTALL}/bin/ + + cp -rf ${SNAPCRAFT_PART_SRC}/snap_launcher/bin/desktop-launch ${SNAPCRAFT_PART_INSTALL}/bin/ -- cgit v1.2.3