main/postmarketos-ui-asteroid: new aport (MR 2124)
This commit is contained in:
parent
c0fa62fe18
commit
9d69ec359b
6 changed files with 80 additions and 0 deletions
50
main/postmarketos-ui-asteroid/APKBUILD
Normal file
50
main/postmarketos-ui-asteroid/APKBUILD
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
||||||
|
pkgname=postmarketos-ui-asteroid
|
||||||
|
pkgver=0.1
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="(Wayland) Smartwatch UI from AsteroidOS"
|
||||||
|
url="https://wiki.postmarketos.org/wiki/AsteroidOS"
|
||||||
|
# armhf blocked by asteroid-launcher
|
||||||
|
arch="noarch !armhf"
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
|
depends="
|
||||||
|
asteroid-launcher
|
||||||
|
"
|
||||||
|
# Required to launch
|
||||||
|
depends="$depends
|
||||||
|
elogind
|
||||||
|
tinydm
|
||||||
|
tinydm-openrc
|
||||||
|
"
|
||||||
|
_pmb_recommends="
|
||||||
|
asteroid-alarmclock
|
||||||
|
asteroid-btsyncd
|
||||||
|
asteroid-calculator
|
||||||
|
asteroid-calendar
|
||||||
|
asteroid-compass
|
||||||
|
asteroid-flashlight
|
||||||
|
asteroid-hrm
|
||||||
|
asteroid-music
|
||||||
|
asteroid-settings
|
||||||
|
asteroid-stopwatch
|
||||||
|
asteroid-timer
|
||||||
|
asteroid-weather
|
||||||
|
"
|
||||||
|
_pmb_groups="users"
|
||||||
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
||||||
|
source="
|
||||||
|
asteroid.desktop
|
||||||
|
asteroid-launcher-wrapper.sh
|
||||||
|
gtk-app-wayland.sh
|
||||||
|
"
|
||||||
|
options="!check"
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 "$srcdir"/asteroid-launcher-wrapper.sh "$pkgdir"/usr/bin/asteroid-launcher-wrapper
|
||||||
|
install -Dm644 "$srcdir"/asteroid.desktop -t "$pkgdir"/usr/share/wayland-sessions/
|
||||||
|
install -Dm755 "$srcdir"/gtk-app-wayland.sh -t "$pkgdir"/etc/profile.d/
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="6dab13e0fb128cce487554871ce4786334b46e0f8f0ffbef0a222607e04f5b49660872ea59b322790e4e35f9b7a53040233823308ba280a8b21c86a412405ec0 asteroid.desktop
|
||||||
|
3795b5e385bbe37a19879ba1fa6b31c3649f304f8e2a9fc2e83987483d2529c0f74aaba4b097e0c5a7aadd97eafe9f1e2c5c1e44dbf41a04768db27843b9bcbd asteroid-launcher-wrapper.sh
|
||||||
|
57793bb079c76ba3bdcfca7880aa887de11fe80e7a05557b78435e57feabab70fbaeedc42da3aec6f914c35bba8e8ee9918367516eb45ee247f63f694624f179 gtk-app-wayland.sh"
|
11
main/postmarketos-ui-asteroid/asteroid-launcher-wrapper.sh
Normal file
11
main/postmarketos-ui-asteroid/asteroid-launcher-wrapper.sh
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export QT_IM_MODULE=qtvirtualkeyboard
|
||||||
|
export QT_QPA_PLATFORM=eglfs
|
||||||
|
export QT_QPA_EGLFS_INTEGRATION=eglfs_kms
|
||||||
|
|
||||||
|
# Default locale, will be overwritten by the environment once the user
|
||||||
|
# has chosen their language in the setup screen
|
||||||
|
export LANG=en_GB.utf8
|
||||||
|
|
||||||
|
/usr/bin/asteroid-launcher
|
6
main/postmarketos-ui-asteroid/asteroid.desktop
Normal file
6
main/postmarketos-ui-asteroid/asteroid.desktop
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Exec=dbus-run-session /usr/bin/asteroid-launcher-wrapper
|
||||||
|
TryExec=/usr/bin/asteroid-launcher
|
||||||
|
Name=AsteroidOS UI
|
||||||
|
Comment=Smartwatch UI from AsteroidOS
|
||||||
|
Type=Application
|
5
main/postmarketos-ui-asteroid/gtk-app-wayland.sh
Normal file
5
main/postmarketos-ui-asteroid/gtk-app-wayland.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Most pure GTK3 apps use wayland by default, but some,
|
||||||
|
# like Firefox, need the backend to be explicitely selected.
|
||||||
|
export GDK_BACKEND=wayland
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
rc-update add tinydm default
|
||||||
|
rc-update add bluetooth default
|
||||||
|
rc-update add mce default
|
||||||
|
rc-update add usb-moded default
|
||||||
|
tinydm-set-session -s /usr/share/wayland-sessions/asteroid.desktop
|
|
@ -0,0 +1 @@
|
||||||
|
postmarketos-ui-asteroid.post-install
|
Loading…
Reference in a new issue