Add postmarketos-ui-xfce4 with touchscreen-optimized config (#695)

This commit is contained in:
Pavel Machek 2017-10-07 18:27:42 +02:00 committed by Oliver Smith
parent 81a7348286
commit 4b3f15b63e
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,23 @@
pkgname=postmarketos-ui-xfce4
pkgver=0.0
pkgrel=0
pkgdesc="Meta package for xfce4"
url="https://github.com/postmarketOS/xfce4-phone"
arch="noarch"
license="GPL3"
depends="xfce4"
makedepends=""
install="$pkgname.post-install"
subpackages=""
source="start_xfce4.sh $install ${pkgname}-${pkgver}-${pkgrel}.tar.gz::https://github.com/postmarketOS/xfce4-phone/archive/${pkgver}.tar.gz"
options="!check"
package() {
install -D -m644 "$srcdir"/start_xfce4.sh \
"$pkgdir"/etc/profile.d/start_xfce4.sh
install -d -m755 "$pkgdir"/etc/skel
cp -a "${srcdir}/xfce4-phone-${pkgver}"/config "$pkgdir"/etc/skel/.config
}
sha512sums="6aa496acf16a5348050ed7aca07203f20f4663b37acd63255c31561e0931f90886050aa3c221db2224e3dc357fe5329dc703ec06f5938e7cea8606ad6b741ee6 start_xfce4.sh
86b0d3d83da393aafc5d17552457030d9dfae071a35dbe93125e101361962f1752575f17c7dd4140d2a5c6cd4e09367bb2226b532a0194c26c5a77899e80842f postmarketos-ui-xfce4.post-install
758562d2820a11b2c96e1805e00450f78203e6fd224115c373825f041b344985490a84b74d2880b423d5606140d5ffb41e79b0a8eb3e5b9a0ce7874c4ccfb666 postmarketos-ui-xfce4-0.0-0.tar.gz"

View file

@ -0,0 +1,13 @@
#!/bin/sh
. /etc/deviceinfo
# Autologin on tty1, let busybox autoconfigure 2-6
autologin="user"
for i in 1 2 3 4 5 6; do
old="^tty$i::respawn:/sbin/getty 38400 tty$i"
new="# tty$i::respawn:/sbin/getty 38400 tty$i"
[ "$i" == "1" ] && new="tty1::respawn:/bin/login -f $autologin"
sed -i -e "s.$old.$new.g" /etc/inittab
done

View file

@ -0,0 +1,8 @@
if [ "$(id -u)" = "12345" ] && [ "$(tty)" = "/dev/tty1" ]; then
startxfce4 > ~/x11.log 2>&1
# In case of failure, restart after 1s
sleep 1
exit
fi