# SliTaz package receipt. PACKAGE="linux-api-headers" VERSION="4.19.294" KBASEVER="${VERSION%.*}" CATEGORY="development" SHORT_DESC="Kernel headers sanitized for use in userspace." MAINTAINER="devel@slitaz.org" LICENSE="GPL2" SOURCE="linux" TARBALL="$SOURCE-$KBASEVER.tar.xz" WEB_SITE="https://www.kernel.org/" WGET_URL="https://www.kernel.org/pub/linux/kernel/v${KBASEVER%.*}.x/$TARBALL" PROVIDE="linux-headers linux64-api-headers linux64-headers" BUILD_DEPENDS="bash wget" [ "$KBASEVER" != "$VERSION" ] && PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" && EXTRA_SOURCE_FILES="$(basename $PATCH)" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2> /dev/null | grep -A 1 longterm | \ sed '/strong/!d;s|.*||;s|/dev/null }