<commit_before>DESCRIPTION = "Support for the PND format in Pandora images (lib, daemon, init script etc.)"
LICENSE = "lGPL"
LIC_FILES_CHKSUM = "file://LGPL.txt;md5=fbc093901857fcd118f065f900982c24"

PR = "r51"

PARALLEL_MAKE = ""

DEPENDS = "virtual/libsdl libsdl-image libsdl-gfx libsdl-ttf"

SRC_URI = " \
          git://openpandora.org/pandora-libraries.git;protocol=git;branch=master \
	  file://libpnd_make.patch \
          file://rc.pndnotifyd \
          file://rc.pndevmapperd \   
          file://op_pnd_run.desktop \
"

SRCREV = "5c3c97f377fd3be4ceecf16fba765852d1a9572b"

S = "${WORKDIR}/git"

inherit update-rc.d

TARGET_CC_ARCH += "${LDFLAGS}"
TARGET_CFLAGS += "-fPIC -Wall -I./include -I${STAGING_INCDIR}/usr/include -I${STAGING_INCDIR}/SDL "

PACKAGES =+ "${PN}-pndnotifyd ${PN}-pndevmapperd ${PN}-minimenu"

RDEPENDS_${PN} += "${PN}-pndnotifyd ${PN}-pndevmapperd ${PN}-minimenu"

INITSCRIPT_PACKAGES = "${PN}-pndnotifyd ${PN}-pndevmapperd"

INITSCRIPT_NAME_${PN}-pndnotifyd = "pndnotifyd-init"
INITSCRIPT_PARAMS_${PN}-pndnotifyd = "start 30 5 3 . stop 40 0 1 6 ."

INITSCRIPT_NAME_${PN}-pndevmapperd = "pndevmapperd-init"
INITSCRIPT_PARAMS_${PN}-pndevmapperd = "start 30 5 3 . stop 40 0 1 6 ."

RDEPENDS_${PN}-pndnotifyd += "${PN}"
RDEPENDS_${PN}-pndevmapperd += "${PN}"

do_compile_prepend() {
          cd ${S}/
}

do_compile() {
          oe_runmake 
          oe_runmake deploy
}

do_install() {
          install -d ${D}${sysconfdir}/pandora/conf/
          install -m 0644 ${S}/deployment/etc/pandora/conf/apps ${D}${sysconfdir}/pandora/conf/apps
          install -m 0644 ${S}/deployment/etc/pandora/conf/desktop ${D}${sysconfdir}/pandora/conf/desktop
          install -m 0644 ${S}/deployment/etc/pandora/conf/categories ${D}${sysconfdir}/pandora/conf/categories
          install -m 0644 ${S}/deployment/etc/pandora/conf/eventmap ${D}${sysconfdir}/pandora/conf/eventmap
          install -m 0644 ${S}/deployment/etc/pandora/conf/mmenu.conf ${D}${sysconfdir}/pandora/conf/mmenu.conf

          install -d ${D}${libdir}/
          install -m 0644 ${S}/deployment/usr/lib/libpnd* ${D}${libdir}/
          install -m 0644 ${S}/deployment/usr/lib/libpnd.so.1.0.1 ${D}${libdir}/libpnd.so.1

          install -d ${D}${bindir}/
          install -m 0755 ${S}/deployment/usr/bin/pndnotifyd ${D}${bindir}/pndnotifyd
          install -m 0755 ${S}/deployment/usr/bin/pndevmapperd ${D}${bindir}/pndevmapperd 
          install -m 0755 ${S}/deployment/usr/bin/pnd_run ${D}${bindir}/pnd_run 
          install -m 0755 ${S}/deployment/usr/bin/pnd_info ${D}${bindir}/pnd_info
          install -m 0755 ${S}/deployment/usr/bin/mmenu ${D}${bindir}/mmenu
          install -m 0755 ${S}/deployment/usr/bin/mmwrapper ${D}${bindir}/mmwrapper

          install -d ${D}${prefix}/pandora/
          install -d ${D}${prefix}/pandora/apps/
	  install -d ${D}${prefix}/pandora/scripts/
          install -m 0755 ${S}/deployment/usr/pandora/scripts/* ${D}${prefix}/pandora/scripts
          install -m 0755 ${S}/testdata/scripts/* ${D}${prefix}/pandora/scripts

          install -d ${D}${sysconfdir}/pandora/mmenu/
          install -d ${D}${sysconfdir}/pandora/mmenu/skins/
          install -d ${D}${sysconfdir}/pandora/mmenu/skins/default/
          install -m 0755 ${S}/deployment/etc/pandora/mmenu/skins/default/* ${D}${sysconfdir}/pandora/mmenu/skins/default

          install -d ${D}${sysconfdir}/init.d/
          install -m 0755 ${WORKDIR}/rc.pndnotifyd ${D}${sysconfdir}/init.d/pndnotifyd-init
          install -m 0755 ${WORKDIR}/rc.pndevmapperd ${D}${sysconfdir}/init.d/pndevmapperd-init

          install -d ${D}${prefix}/local/share/applications/

          install -d ${D}${includedir}/
          install -m 0644 ${S}/include/pnd* ${D}${includedir}/

          install -d ${D}${sysconfdir}/sudoers.d/
          install -m 440 ${S}/testdata/sh/sudoers ${D}${sysconfdir}/sudoers.d/99_libpnd

          install -d ${D}${datadir}/applications/
          install -m 0644 ${WORKDIR}/op_pnd_run.desktop ${D}${datadir}/applications/
}

FILES_${PN}-minimenu = "${bindir}/mmenu ${bindir}/mmwrapper ${sysconfdir}/pandora/conf/mmenu.conf ${sysconfdir}/pandora/mmenu* "
FILES_${PN}-pndnotifyd = "${sysconfdir}/init.d/pndnotifyd-init ${bindir}/pndnotifyd"
FILES_${PN}-pndevmapperd = "${sysconfdir}/init.d/pndevmapperd-init ${bindir}/pndevmapperd "
FILES_${PN}-dev += "${libdir}/libpnd.a ${includedir}/pnd* "
FILES_${PN}-doc += "${libdir}/libpnd.txt "

# Mop up remaining files.
FILES_${PN} += "${bindir} ${sbindir} ${prefix}/pandora/*"<commit_msg>pandora-libpnd.bb: updated to latest version<commit_after>DESCRIPTION = "Support for the PND format in Pandora images (lib, daemon, init script etc.)"
LICENSE = "lGPL"
LIC_FILES_CHKSUM = "file://LGPL.txt;md5=fbc093901857fcd118f065f900982c24"

PR = "r63"

PARALLEL_MAKE = ""

DEPENDS = "virtual/libsdl libsdl-image libsdl-gfx libsdl-ttf"

SRC_URI = " \
          git://openpandora.org/pandora-libraries.git;protocol=git;branch=master \
	  file://libpnd_make.patch \
          file://rc.pndnotifyd \
          file://rc.pndevmapperd \   
          file://op_pnd_run.desktop \
"

SRCREV = "2bb1805c65b796796a701e2934ceddcbd568544a"

S = "${WORKDIR}/git"

inherit update-rc.d

TARGET_CC_ARCH += "${LDFLAGS}"
TARGET_CFLAGS += "-fPIC -Wall -I./include -I${STAGING_INCDIR}/usr/include -I${STAGING_INCDIR}/SDL "

PACKAGES =+ "${PN}-pndnotifyd ${PN}-pndevmapperd ${PN}-minimenu"

RDEPENDS_${PN} += "${PN}-pndnotifyd ${PN}-pndevmapperd ${PN}-minimenu"

INITSCRIPT_PACKAGES = "${PN}-pndnotifyd ${PN}-pndevmapperd"

INITSCRIPT_NAME_${PN}-pndnotifyd = "pndnotifyd-init"
INITSCRIPT_PARAMS_${PN}-pndnotifyd = "start 30 5 3 . stop 40 0 1 6 ."

INITSCRIPT_NAME_${PN}-pndevmapperd = "pndevmapperd-init"
INITSCRIPT_PARAMS_${PN}-pndevmapperd = "start 30 5 3 . stop 40 0 1 6 ."

RDEPENDS_${PN}-pndnotifyd += "${PN}"
RDEPENDS_${PN}-pndevmapperd += "${PN}"

do_compile_prepend() {
          cd ${S}/
}

do_compile() {
          oe_runmake 
          oe_runmake deploy
}

do_install() {
          install -d ${D}${sysconfdir}/pandora/conf/
          install -m 0644 ${S}/deployment/etc/pandora/conf/apps ${D}${sysconfdir}/pandora/conf/apps
          install -m 0644 ${S}/deployment/etc/pandora/conf/desktop ${D}${sysconfdir}/pandora/conf/desktop
          install -m 0644 ${S}/deployment/etc/pandora/conf/categories ${D}${sysconfdir}/pandora/conf/categories
          install -m 0644 ${S}/deployment/etc/pandora/conf/eventmap ${D}${sysconfdir}/pandora/conf/eventmap
          install -m 0644 ${S}/deployment/etc/pandora/conf/mmenu.conf ${D}${sysconfdir}/pandora/conf/mmenu.conf

          install -d ${D}${libdir}/
          install -m 0644 ${S}/deployment/usr/lib/libpnd* ${D}${libdir}/
          install -m 0644 ${S}/deployment/usr/lib/libpnd.so.1.0.1 ${D}${libdir}/libpnd.so.1

          install -d ${D}${bindir}/
          install -m 0755 ${S}/deployment/usr/bin/pndnotifyd ${D}${bindir}/pndnotifyd
          install -m 0755 ${S}/deployment/usr/bin/pndevmapperd ${D}${bindir}/pndevmapperd 
          install -m 0755 ${S}/deployment/usr/bin/pnd_run ${D}${bindir}/pnd_run 
          install -m 0755 ${S}/deployment/usr/bin/pnd_info ${D}${bindir}/pnd_info
          install -m 0755 ${S}/deployment/usr/bin/mmenu ${D}${bindir}/mmenu
          install -m 0755 ${S}/deployment/usr/bin/mmwrapper ${D}${bindir}/mmwrapper

          install -d ${D}${prefix}/pandora/
          install -d ${D}${prefix}/pandora/apps/
	  install -d ${D}${prefix}/pandora/scripts/
          install -m 0755 ${S}/deployment/usr/pandora/scripts/* ${D}${prefix}/pandora/scripts
          install -m 0755 ${S}/testdata/scripts/* ${D}${prefix}/pandora/scripts

          install -d ${D}${sysconfdir}/pandora/mmenu/
          install -d ${D}${sysconfdir}/pandora/mmenu/skins/
          install -d ${D}${sysconfdir}/pandora/mmenu/skins/default/
	  install -d ${D}${sysconfdir}/pandora/mmenu/skins/clean/
          install -m 0755 ${S}/deployment/etc/pandora/mmenu/skins/default/* ${D}${sysconfdir}/pandora/mmenu/skins/default
	  install -m 0755 ${S}/deployment/etc/pandora/mmenu/skins/clean/* ${D}${sysconfdir}/pandora/mmenu/skins/clean

          install -d ${D}${sysconfdir}/init.d/
          install -m 0755 ${WORKDIR}/rc.pndnotifyd ${D}${sysconfdir}/init.d/pndnotifyd-init
          install -m 0755 ${WORKDIR}/rc.pndevmapperd ${D}${sysconfdir}/init.d/pndevmapperd-init

          install -d ${D}${prefix}/local/share/applications/

          install -d ${D}${includedir}/
          install -m 0644 ${S}/include/pnd* ${D}${includedir}/

          install -d ${D}${sysconfdir}/sudoers.d/
          install -m 440 ${S}/testdata/sh/sudoers ${D}${sysconfdir}/sudoers.d/99_libpnd

          install -d ${D}${datadir}/applications/
          install -m 0644 ${WORKDIR}/op_pnd_run.desktop ${D}${datadir}/applications/
}

FILES_${PN}-minimenu = "${bindir}/mmenu ${bindir}/mmwrapper ${sysconfdir}/pandora/conf/mmenu.conf ${sysconfdir}/pandora/mmenu* "
FILES_${PN}-pndnotifyd = "${sysconfdir}/init.d/pndnotifyd-init ${bindir}/pndnotifyd"
FILES_${PN}-pndevmapperd = "${sysconfdir}/init.d/pndevmapperd-init ${bindir}/pndevmapperd "
FILES_${PN}-dev += "${libdir}/libpnd.a ${includedir}/pnd* "
FILES_${PN}-doc += "${libdir}/libpnd.txt "

# Mop up remaining files.
FILES_${PN} += "${bindir} ${sbindir} ${prefix}/pandora/*"
{'fraction_non_alphanumeric': 0.1827656602557215, 'fraction_numerical': 0.03416783066509079, 'mean_word_length': 3.271684258834328, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6982164', 'n_tokens_mistral': 3913, 'n_tokens_neox': 3563, 'n_words': 539}