1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-06-02 10:18:43 +02:00
build/pkg/linux-rpi3/build

19 lines
629 B
Plaintext
Raw Normal View History

# inherit functions from generic kernel package
source "$SCRIPTDIR/pkg/linux/build"
VERSION="1.20181112-1"
SRCDIR="linux-raspberrypi-kernel_${VERSION}"
TARBALL="raspberrypi-kernel_${VERSION}.tar.gz"
URL="https://github.com/raspberrypi/linux/archive"
SHA256SUM="15919f062267325c2afc65eeebd26fa9bdc34dc7ddb6b5018d4e0ca036c114b3"
DEPENDS="initrd"
check_update() {
local version=$(echo $VERSION | sed 's/-/./g')
curl --silent -L "https://github.com/raspberrypi/linux/releases" | \
grep -o "raspberrypi-kernel_[0-9.]*-[0-9]" | \
sed 's/raspberrypi-kernel_//g' | sed 's/-/./g' | \
verson_find_greatest "$version"
}