summaryrefslogtreecommitdiffstats
path: root/meta-agl-flutter/recipes-graphics/flutter-apps/flutter-app-homescreen_git.bb
blob: 1f57cd7efe4346e2ce1f357b200ddc1b8073b528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SUMMARY = "Igalia Flutter Homescreen"
DESCRIPTION = "Flutter Gallery Application"
AUTHOR = "Igalia"
HOMEPAGE = "https://github.com/felipeerias/flutter_homescreen"
BUGTRACKER = "https://github.com/felipeerias/flutter_homescreen/issues"
SECTION = "graphics"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"

SRC_URI = "git://github.com/felipeerias/flutter_homescreen.git;protocol=https;branch=main"

SRCREV = "283f915354dcc81410b30534c1eda063d0e78888"

S = "${WORKDIR}/git"

PUBSPEC_APPNAME = "flutter_homescreen"

inherit flutter-app
KDIR}/git" inherit cmake aglwgt pkgconfig DEPENDS += "alsa-lib json-c systemd af-binder glib-2.0 lua" do_aglwgt_deploy_append() { cat <<'EOF' >${D}/${sysconfdir}/agl-postinsts/99_4A_service_patch.sh N=600 svcfile="/usr/local/lib/systemd/*/afm-service-agl-service-audio-4a*.service" set -x echo "-- TMP 4A INSTALL FIX from meta-agl/meta-app-framework/recipes-multimedia/agl-service-audio-4a/agl-service-audio-4a_git.bb - MUST BE REMOVED !!!" while ! ls $svcfile > /dev/null; do if [ $N = 0 ]; then echo "-- TMP 4A INSTALL NOT FIXED"; exit 0; fi echo . sleep 0.2 N=$(expr $N - 1) done sed -i '/\[Unit\]/ a Before=pulseaudio.service' $svcfile; sed -i '/\[Unit\]/ a ConditionPathExistsGlob=/dev/snd/control*' $svcfile; sed -i '/ExecStartPre=/ a Environment=LIBASOUND_THREAD_SAFE=0' $svcfile; sed -i -e 's|/usr/bin/afb-daemon\>|& --ldpath=/usr/libexec/agl/4a-alsa-core/lib:/usr/libexec/agl/4a-hal/lib:/usr/libexec/agl/afb-aaaa/lib:/usr/libexec/agl/smixer/lib|' $svcfile # binder name matters: it must match "afbd-4a-*" => the config file (controller json file) that will be searched will be "policy-4a-*.json" sed -i -e 's|--name afbd-agl-\(.*\)|--name afbd-4a-\1|' $svcfile echo "-- TMP 4A INSTALL FIX END" EOF chmod a+x ${D}/${sysconfdir}/agl-postinsts/99_4A_service_patch.sh }