summaryrefslogtreecommitdiff
path: root/recipes-multimedia/media-files/media-files_1.3.bb
blob: c51497fab85141f55449adedcd6f92a44f5df4d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SUMMARY = "Media Files for tests"
LICENSE = "CC0-1.0"
LIC_FILES_CHKSUM = "file://${WORKDIR}/CC0-1.0;md5=0ceb3372c9595f0a8067e55da801e4a1"

inherit allarch bin_package

SRC_URI = "https://docs1.toradex.com/114780-media-files-${PV}.tar.xz"

SRC_URI[sha256sum] = "d6a3cd2003798fec80fb8008d2e48a5fa2c581f4ae66c03cd573d33b18341e67"

S = "${WORKDIR}/media-files"

# Install the files to ${D}${ROOT_HOME}
# Source code of original poky function:
# https://git.yoctoproject.org/poky/plain/meta/classes-recipe/bin_package.bbclass
# The function is being modified to install it inside ROOT_HOME, since we want
# these files inside the root directory and ROOT_HOME can change.
do_install () {
    # Do it carefully
    [ -d "${S}" ] || exit 1
    if [ -z "$(ls -A ${S})" ]; then
        bbfatal bin_package has nothing to install. Be sure the SRC_URI unpacks into S.
    fi
    cd ${S}
    install -d ${D}${base_prefix}${ROOT_HOME}
    tar --no-same-owner --exclude='./patches' --exclude='./.pc' -cpf - . \
        | tar --no-same-owner -xpf - -C ${D}${base_prefix}${ROOT_HOME}
}