<commit_before>DESCRIPTION = "Encrypted shellscript for the Zaurus ROM update"
DEPENDS = "encdec-updater-native"
LICENSE = "zaurus-updater"
PR = "r25"

PACKAGES = ""
COMPATIBLE_MACHINE = '(poodle|c7x0|spitz|akita|tosa)'

SRC_URI = "file://updater.sh \
           file://gnu-tar.gz"

S = "${WORKDIR}"

do_configure() {
        sed -i "s/ZAURUS_UPDATER_VERSION/${PR}/" "${S}/updater.sh"
}

do_compile() {
        encdec-updater -e updater.sh
}

do_deploy() {
        install -d ${DEPLOY_DIR_IMAGE}
        install -m 0755 updater.sh ${DEPLOY_DIR_IMAGE}/updater.sh
        package_stagefile_shell ${DEPLOY_DIR_IMAGE}/updater.sh

        case ${MACHINE} in
                spitz )
                        install -m 0755 gnu-tar ${DEPLOY_DIR_IMAGE}/gnu-tar
                        package_stagefile_shell ${DEPLOY_DIR_IMAGE}/gnu-tar
                        ;;
                *)<commit_msg>zaurus-update: add back PACKAGE_ARCH = "${MACHINE_ARCH}" otherwise you'll miss out on gnu-tar for multi-machine builds where spitz isn't first<commit_after>DESCRIPTION = "Encrypted shellscript for the Zaurus ROM update"
DEPENDS = "encdec-updater-native"
LICENSE = "zaurus-updater"
PR = "r25"

PACKAGE_ARCH = "${MACHINE_ARCH}"
PACKAGES = ""
COMPATIBLE_MACHINE = '(poodle|c7x0|spitz|akita|tosa)'

SRC_URI = "file://updater.sh \
           file://gnu-tar.gz"

S = "${WORKDIR}"

do_configure() {
        sed -i "s/ZAURUS_UPDATER_VERSION/${PR}/" "${S}/updater.sh"
}

do_compile() {
        encdec-updater -e updater.sh
}

do_deploy() {
        install -d ${DEPLOY_DIR_IMAGE}
        install -m 0755 updater.sh ${DEPLOY_DIR_IMAGE}/updater.sh
        package_stagefile_shell ${DEPLOY_DIR_IMAGE}/updater.sh

        case ${MACHINE} in
                spitz )
                        install -m 0755 gnu-tar ${DEPLOY_DIR_IMAGE}/gnu-tar
                        package_stagefile_shell ${DEPLOY_DIR_IMAGE}/gnu-tar
                        ;;
                *)
{'fraction_non_alphanumeric': 0.1282316442605998, 'fraction_numerical': 0.012409513960703205, 'mean_word_length': 2.3887915936952715, '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': '916615', 'n_tokens_mistral': 727, 'n_tokens_neox': 689, 'n_words': 125}