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/