LICENSE = "CLOSED"
inherit systemd

SYSTEMD_AUTO_ENABLE = "enable"
SYSTEMD_SERVICE:${PN} = "flutter.service"

SRC_URI:append = " file://flutter.service "
FILES:${PN} += "${systemd_unitdir}/system/flutter.service"

do_install:append() {
  install -d ${D}/${systemd_unitdir}/system
  install -m 0644 ${WORKDIR}/flutter.service ${D}/${systemd_unitdir}/system
}