diff --git a/board/winf-photobooth/overlay/etc/init.d/S99photobooth b/board/winf-photobooth/overlay/etc/init.d/S99photobooth new file mode 100755 index 00000000..acfe8b90 --- /dev/null +++ b/board/winf-photobooth/overlay/etc/init.d/S99photobooth @@ -0,0 +1,19 @@ +#!/bin/sh + +export SLINT_BACKEND=linuxkms + +case "$1" in + start) + start-stop-daemon -S -b -m \ + -p /run/winf-photobooth-app.pid \ + -x /usr/bin/winf-photobooth-app \ + >> /var/log/winf-photobooth-app.log 2>&1 + ;; + stop) + start-stop-daemon -K -p /run/winf-photobooth-app.pid + ;; + restart) + "$0" stop + "$0" start + ;; +esac diff --git a/board/winf-photobooth/overlay/root/run b/board/winf-photobooth/overlay/root/run new file mode 100755 index 00000000..8c97f9a3 --- /dev/null +++ b/board/winf-photobooth/overlay/root/run @@ -0,0 +1,3 @@ +#!/bin/bash + +SLINT_BACKEND=linuxkms RUST_BACKTRACE=full /usr/bin/winf-photobooth-app 2>log diff --git a/package/Config.in b/package/Config.in index 60588006..2b59a171 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2939,4 +2939,6 @@ menu "Text editors and viewers" source "package/vim/Config.in" endmenu +source "package/winf-photobooth/Config.in" + endmenu diff --git a/package/winf-photobooth/Config.in b/package/winf-photobooth/Config.in new file mode 100644 index 00000000..667d3dba --- /dev/null +++ b/package/winf-photobooth/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_WINF_PHOTOBOOTH + bool "winf-photobooth" + depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS + depends on BR2_PACKAGE_HAS_LIBGBM + + select BR2_PACKAGE_HOST_RUSTC + select BR2_PACKAGE_FONTCONFIG + select BR2_PACKAGE_SEATD + select BR2_PACKAGE_LIBXKBCOMMON + select BR2_PACKAGE_LIBINPUT diff --git a/package/winf-photobooth/winf-photobooth.mk b/package/winf-photobooth/winf-photobooth.mk new file mode 100644 index 00000000..9142bd28 --- /dev/null +++ b/package/winf-photobooth/winf-photobooth.mk @@ -0,0 +1,8 @@ +WINF_PHOTOBOOTH_VERSION = d0d2d0311bdd484e9c348888477de40e0178c509 +WINF_PHOTOBOOTH_SITE = https://git.xn--k-0fa.se/mikee/winf-photobooth-app +WINF_PHOTOBOOTH_SITE_METHOD = git +WINF_PHOTOBOOTH_LICENSE = MIT + +WINF_PHOTOBOOTH_DEPENDENCIES += fontconfig seatd libxkbcommon libinput libgbm host-pkgconf + +$(eval $(cargo-package))