VERSION="1.20180328" SRCDIR="firmware-${VERSION}" TARBALL="${VERSION}.tar.gz" URL="https://github.com/raspberrypi/firmware/archive" SHA256SUM="44731225495bb211353dd86fbead980f8bb62930a3ec6711ed7094aff2397758" DEPENDS="" prepare() { return } build() { return } deploy() { local SOURCE="$1" local DEPLOY="$2" cp -r "$SOURCE/hardfp/opt" "$DEPLOY" cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY" strip_files ${DEPLOY}/opt/vc/{bin,sbin}/* strip_files ${DEPLOY}/opt/vc/lib/*.so strip_files ${DEPLOY}/opt/vc/lib/plugins/*.so } check_update() { curl --silent -L https://github.com/raspberrypi/firmware/releases | \ grep -o "[0-9.]\+tar.gz" | sed 's/.tar.gz//g' | \ verson_find_greatest "$VERSION" }