wok-6.x diff linux-libre-api-headers/receipt @ rev 25556
created recipes for nted and nted-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 22 14:54:15 2023 +0100 (19 months ago) |
parents | bd7510903310 |
children |
line diff
1.1 --- a/linux-libre-api-headers/receipt Sun May 01 08:42:44 2022 +0000 1.2 +++ b/linux-libre-api-headers/receipt Sat Apr 22 14:54:15 2023 +0100 1.3 @@ -8,9 +8,12 @@ 1.4 LICENSE="GPL2" 1.5 PROVIDE="linux-api-headers" 1.6 SOURCE="linux-libre" 1.7 -TARBALL="$SOURCE-$VERSION.tar.bz2" 1.8 +TARBALL="$SOURCE-$VERSION.vcdiff" 1.9 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" 1.10 -WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/old/gen6/$VERSION/$TARBALL" 1.11 +WGET_URL="http://linux-libre.fsfla.org/pub/linux-libre/releases/old/gen6/$VERSION/$TARBALL" 1.12 +EXTRA_SOURCE_FILES="https://mirrors.edge.kernel.org/pub/linux/kernel/v${VERSION%%.*}.x/linux-${VERSION%-gnu}.tar.xz" 1.13 + 1.14 +BUILD_DEPENDS="xdelta" 1.15 1.16 # What is the latest version available today? 1.17 current_version() 1.18 @@ -19,12 +22,23 @@ 1.19 sed '/-gnu/!d;s|.*ref="||;s|/".*||' | sed '$!d' 1.20 } 1.21 1.22 +# Common rules for cook_tmp_toolchain & compile_rules 1.23 +build_rules() 1.24 +{ 1.25 + [ -s "$SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES)" ] || 1.26 + busybox wget -P "$SOURCES_REPOSITORY/" "$EXTRA_SOURCE_FILES" 1.27 + xzcat < $SOURCES_REPOSITORY//$(basename $EXTRA_SOURCE_FILES) > $(basename $EXTRA_SOURCE_FILES .xz) 1.28 + xdelta3 -d $TARBALL 1.29 + tar xf ${TARBALL/vcdiff/tar} 1.30 + mv linux-*/* . 1.31 + make mrproper && 1.32 + make headers_check 1.33 +} 1.34 + 1.35 # Rules to compile & install the temporary toolchain. 1.36 cook_tmp_toolchain() 1.37 { 1.38 - cd $src 1.39 - make mrproper && 1.40 - make headers_check && 1.41 + build_rules && 1.42 make INSTALL_HDR_PATH=dest headers_install && 1.43 cp -r dest/include/* /tools/include 1.44 } 1.45 @@ -32,9 +46,7 @@ 1.46 # Rules to configure and make the package. 1.47 compile_rules() 1.48 { 1.49 - cd $src 1.50 - make mrproper && 1.51 - make headers_check && 1.52 + build_rules && 1.53 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install 1.54 } 1.55