Commit 383c0bbb authored by Dan Johansen's avatar Dan Johansen
Browse files

Merge branch 'port-to-kde' into 'master'

update source to invent.kde.org and adjust files to match

See merge request !4
parents 4d3fd297 b67814f0
Pipeline #9848 passed with stage
in 5 minutes and 17 seconds
_pkgname=pico-wizard
pkgbase=$_pkgname
pkgname=($_pkgname-git $_pkgname-plamo-scripts $_pkgname-bigscreen-scripts)
pkgver=r163.52a17c8
pkgrel=9
pkgver=0.1.0.r178.5462eaa
pkgrel=1
pkgdesc="A Post Installation Configuration Wizard for linux based OS"
arch=('any')
url="https://github.com/pico-wizard/$_pkgname"
url="https://invent.kde.org/plasma/$_pkgname"
license=('MIT')
install=$_pkgname.install
depends=(
......@@ -18,12 +18,8 @@ depends=(
)
makedepends=(git python)
source=(
"git+https://github.com/pico-wizard/$_pkgname.git"
pico-wizard.conf
pico-wizard-session
#pico-wizard-session.desktop
"git+https://invent.kde.org/plasma/$_pkgname.git"
pico-wizard.desktop
pico-wizard-wrapper
pico-wizard-cleanup
90-pico-wizard-autologin.conf
00-setup-autologin
......@@ -31,10 +27,7 @@ source=(
pico-wizard-cleanup.service
)
md5sums=('SKIP'
'de719a7f0388282e5388215e9369f0c5'
'c5ed3d6c372ef6fcfecc7abee19a938e'
'00817c858f151fec7cd19382c4ceb5ea'
'fb35213962166068aac154999fba4663'
'7196ec22e5d869a378ae13403fc6a6c3'
'1fe0466f4f3aa6fc2ef9b4509cfb0a2a'
'586474fe284a86baed05e14da103b0cc'
......@@ -42,8 +35,9 @@ md5sums=('SKIP'
'b579b850955fbfc070b79c1f8b49b7a3')
pkgver() {
version=0.1.0
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
printf "${version}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package_pico-wizard-git() {
......@@ -63,14 +57,10 @@ package_pico-wizard-plamo-scripts() {
pkgdesc="Pico-Wizard Config and Scripts for Plasma-Mobile"
depends=('pico-wizard')
install -Dm644 "${srcdir}/pico-wizard.conf" -t "${pkgdir}/etc/pico-wizard/"
install -Dm755 "${srcdir}/00-setup-autologin" -t "${pkgdir}/etc/pico-wizard/scripts.d/"
install -Dm755 "${srcdir}/finish.hook" -t "${pkgdir}/etc/pico-wizard/scripts.d/"
install -Dm644 "${srcdir}/90-pico-wizard-autologin.conf" -t "${pkgdir}/etc/sddm.conf.d/"
install -Dm755 "${srcdir}/pico-wizard-session" -t "${pkgdir}/usr/bin/"
install -Dm755 "${srcdir}/pico-wizard-wrapper" -t "${pkgdir}/usr/bin/"
install -Dm755 "${srcdir}/pico-wizard-cleanup" -t "${pkgdir}/usr/bin/"
#install -Dm755 "${srcdir}/pico-wizard-session.desktop" -t "${pkgdir}/usr/share/wayland-sessions/"
install -Dm755 "${srcdir}/pico-wizard.desktop" -t "${pkgdir}/etc/xdg/autostart/"
install -Dm644 "${srcdir}/pico-wizard-cleanup.service" -t "${pkgdir}/usr/lib/systemd/system/"
}
......
#!/bin/sh
[ -f /etc/profile ] && . /etc/profile
export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORMTHEME=KDE
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export EGL_PLATFORM=wayland
export QT_QUICK_CONTROLS_STYLE=org.kde.breeze
export QT_ENABLE_GLYPH_CACHE_WORKAROUND=1
export QT_QUICK_CONTROLS_MOBILE=true
export PLASMA_INTEGRATION_USE_PORTAL=1
export PLASMA_PLATFORM=phone:handset
export QT_VIRTUALKEYBOARD_STYLE=Plasma
export GRID_UNIT_PX=25
export FORCE_RIL_NUM_MODEMS=1
startplasma-wayland --xwayland --inputmethod maliit-keyboard --exit-with-session=/usr/bin/pico-wizard-wrapper
[Desktop Entry]
Exec=dbus-run-session /usr/bin/pico-wizard-session
TryExec=/usr/bin/pico-wizard-session
DesktopNames=KDE
Name=Pico Wizard
Comment=A Post Installation Configuration Wizard
X-KDE-PluginInfo-Version=
#!/bin/sh
/usr/bin/kded5&
sleep 7
qdbus org.kde.kded5 /modules/kscreen org.kde.KScreen.setAutoRotate false
/usr/bin/kde-inhibit --screenSaver --power /usr/bin/pico-wizard
[GENERAL]
MODULES =
Timezone,
Wifi,
User,
# PASSWORD_TYPE can be alphanumeric (default), digitsonly
PASSWORD_TYPE = digitsonly
# LOGLEVEL can be debug, info (default), warning, error, critical
LOGLEVEL = debug
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment