From 0645c552bfce7119af9373539b1e526d4c8a7040 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Fri, 24 Apr 2020 10:18:47 +0200 Subject: [PATCH] main/postmarketos-ui-glacier: new aport (MR 2114) [ci:skip-build] already built successfully in CI --- main/postmarketos-ui-glacier/APKBUILD | 55 +++++++++++++++++++ .../glacier-qt-mobile-controls.sh | 1 + main/postmarketos-ui-glacier/glacier.desktop | 6 ++ main/postmarketos-ui-glacier/glacier.sh | 7 +++ .../postmarketos-ui-glacier.post-install | 7 +++ .../postmarketos-ui-glacier.post-upgrade | 1 + 6 files changed, 77 insertions(+) create mode 100644 main/postmarketos-ui-glacier/APKBUILD create mode 120000 main/postmarketos-ui-glacier/glacier-qt-mobile-controls.sh create mode 100644 main/postmarketos-ui-glacier/glacier.desktop create mode 100644 main/postmarketos-ui-glacier/glacier.sh create mode 100644 main/postmarketos-ui-glacier/postmarketos-ui-glacier.post-install create mode 120000 main/postmarketos-ui-glacier/postmarketos-ui-glacier.post-upgrade diff --git a/main/postmarketos-ui-glacier/APKBUILD b/main/postmarketos-ui-glacier/APKBUILD new file mode 100644 index 000000000..3bbef584c --- /dev/null +++ b/main/postmarketos-ui-glacier/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=postmarketos-ui-glacier +pkgver=0.1 +pkgrel=0 +pkgdesc="(Wayland) Open-source alternative to the SailfishOS UI" +url="https://wiki.postmarketos.org/wiki/Glacier" +# armhf blocked by glacier-home +arch="noarch !armhf" +license="GPL-3.0-or-later" +depends=" + elogind + glacier-home + ofono + ofono-openrc + pulseaudio + qt5-qtvirtualkeyboard + urfkill + urfkill-openrc + " +# Required to launch +depends="$depends + tinydm + " +_pmb_recommends=" + glacier-calc + glacier-filemuncher + glacier-gallery + glacier-music + glacier-pinquery + glacier-settings + megapixels + qmlkonsole + " +_pmb_groups="users" +install="$pkgname.post-install $pkgname.post-upgrade" +source=" + glacier.sh + glacier.desktop + glacier-qt-mobile-controls.sh + " +options="!check" # No code to test + +package() { + install -Dm755 "$srcdir"/glacier.sh \ + "$pkgdir"/usr/bin/glacier + install -Dm755 "$srcdir"/glacier.desktop \ + "$pkgdir"/usr/share/wayland-sessions/glacier.desktop + + install -Dm755 -t "$pkgdir"/etc/profile.d/ \ + "$srcdir"/glacier-qt-mobile-controls.sh +} +sha512sums="e57e1dc48a602b98e16ed4960add51e2532d3cbdbb4c44f4df56eecb726d27b9732cf53b2548c4f3adce8e1a7e72710723da72df700afc131065bafb8b3cbbba glacier.sh +6a05f5ab14dd9bfa8366ff9e9acbe6443373fbdca22eb3ddbe6ccb57ff19835cfc312ab89fd6dfe91e1e8cc757d12b52c8a71172bac35775f132a5a6ec6be5a9 glacier.desktop +bf8db527c49fa724e640a90269ba2648a2555f5867b2adbfbd88d1f685261f757339757c09ee08f590c76de4bd3d0c73a47dea9bd340644dd4707e76152cefd1 glacier-qt-mobile-controls.sh" diff --git a/main/postmarketos-ui-glacier/glacier-qt-mobile-controls.sh b/main/postmarketos-ui-glacier/glacier-qt-mobile-controls.sh new file mode 120000 index 000000000..815334f11 --- /dev/null +++ b/main/postmarketos-ui-glacier/glacier-qt-mobile-controls.sh @@ -0,0 +1 @@ +../.shared-scripts/qt-mobile-controls.sh \ No newline at end of file diff --git a/main/postmarketos-ui-glacier/glacier.desktop b/main/postmarketos-ui-glacier/glacier.desktop new file mode 100644 index 000000000..29d65a8a4 --- /dev/null +++ b/main/postmarketos-ui-glacier/glacier.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Glacier (Wayland) +Comment=This session will start Glacier +Exec=dbus-run-session /usr/bin/glacier +TryExec=/usr/bin/glacier +Type=Application diff --git a/main/postmarketos-ui-glacier/glacier.sh b/main/postmarketos-ui-glacier/glacier.sh new file mode 100644 index 000000000..5cf63b032 --- /dev/null +++ b/main/postmarketos-ui-glacier/glacier.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +export QT_IM_MODULE=qtvirtualkeyboard + +# shellcheck disable=SC1091 +. /usr/share/lipstick-glacier-home-qt5/nemovars.conf +/usr/bin/lipstick -platform eglfs -plugin evdevmouse evdevkeyboard evdevtablet diff --git a/main/postmarketos-ui-glacier/postmarketos-ui-glacier.post-install b/main/postmarketos-ui-glacier/postmarketos-ui-glacier.post-install new file mode 100644 index 000000000..86f77aa9d --- /dev/null +++ b/main/postmarketos-ui-glacier/postmarketos-ui-glacier.post-install @@ -0,0 +1,7 @@ +#!/bin/sh + +rc-update add tinydm default +rc-update add urfkill default +rc-update add ofono default +rc-update add ofono-auto-enable default +tinydm-set-session -s /usr/share/wayland-sessions/glacier.desktop diff --git a/main/postmarketos-ui-glacier/postmarketos-ui-glacier.post-upgrade b/main/postmarketos-ui-glacier/postmarketos-ui-glacier.post-upgrade new file mode 120000 index 000000000..9c1fb64cb --- /dev/null +++ b/main/postmarketos-ui-glacier/postmarketos-ui-glacier.post-upgrade @@ -0,0 +1 @@ +postmarketos-ui-glacier.post-install \ No newline at end of file