main/postmarketos-ui-framebufferphone: new aport (MR 2850)
[ci:skip-build] already built successfully in CI
This commit is contained in:
parent
135a134efd
commit
5519ec85d3
5 changed files with 68 additions and 0 deletions
36
main/postmarketos-ui-framebufferphone/APKBUILD
Normal file
36
main/postmarketos-ui-framebufferphone/APKBUILD
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Reference: https://postmarketos.org/uipkg
|
||||||
|
# Maintainer: Miles Alan <m@milesalan.com>
|
||||||
|
pkgname=postmarketos-ui-framebufferphone
|
||||||
|
pkgver=1
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Minimalist framebuffer menu/keyboard UI accessible via touch/volume keys & compatible scripts"
|
||||||
|
url="http://sr.ht/~mil/framebufferphone"
|
||||||
|
arch="aarch64 x86_64" # Limited by fbp / zig in alpine support
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
|
depends="
|
||||||
|
postmarketos-base-ui
|
||||||
|
fbp
|
||||||
|
"
|
||||||
|
_pmb_recommends="
|
||||||
|
f_scripts-f_audio
|
||||||
|
f_scripts-f_files
|
||||||
|
f_scripts-f_game
|
||||||
|
f_scripts-f_maps
|
||||||
|
f_scripts-f_networks
|
||||||
|
f_scripts-f_phone
|
||||||
|
f_scripts-f_rss
|
||||||
|
f_scripts-f_theme
|
||||||
|
f_scripts-f_timer
|
||||||
|
f_scripts-f_web
|
||||||
|
f_scripts-f_youtube
|
||||||
|
"
|
||||||
|
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
|
||||||
|
source="fbp.init"
|
||||||
|
options="!check" # No tests
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 "$srcdir"/fbp.init "$pkgdir"/etc/init.d/fbp
|
||||||
|
}
|
||||||
|
sha512sums="
|
||||||
|
e95d2daaa90b8f4cf4ba7da9e7330b59057505857b8688b4d60b7f2ddeec8d59308002ecd17083b1c6096a40dc496b996dba42ef21fff95619fe535280465372 fbp.init
|
||||||
|
"
|
25
main/postmarketos-ui-framebufferphone/fbp.init
Normal file
25
main/postmarketos-ui-framebufferphone/fbp.init
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
|
name="fbp"
|
||||||
|
command="/usr/bin/fbp"
|
||||||
|
pidfile="/var/run/fbp.pid"
|
||||||
|
output_log="/var/log/fbp_stdout.log"
|
||||||
|
error_log="/var/log/fbp_stderr.log"
|
||||||
|
command_background=true
|
||||||
|
|
||||||
|
depend()
|
||||||
|
{
|
||||||
|
after consolefont
|
||||||
|
keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu
|
||||||
|
}
|
||||||
|
|
||||||
|
start_pre()
|
||||||
|
{
|
||||||
|
# Setup kernel support for user level drivers (input subsystem)
|
||||||
|
if [ ! -e /dev/uinput ]; then
|
||||||
|
if ! modprobe -q uinput; then
|
||||||
|
eerror "The uinput module needs to be loaded by " \
|
||||||
|
"the fbp service or built in."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
rc-update add fbp default
|
|
@ -0,0 +1 @@
|
||||||
|
postmarketos-ui-framebufferphone.post-install
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
rc-update del fbp
|
Loading…
Reference in a new issue