wok annotate linux-libre-api-headers/receipt @ rev 25237

updated python-simplejson (3.17.0 -> 3.17.6)
author Hans-G?nter Theisgen
date Wed Jul 13 17:45:54 2022 +0100 (23 months ago)
parents bd7510903310
children
rev   line source
gokhlayeh@9257 1 # SliTaz package receipt.
gokhlayeh@9257 2
gokhlayeh@9257 3 PACKAGE="linux-libre-api-headers"
pascal@20604 4 VERSION="3.18.129-gnu"
gokhlayeh@9257 5 CATEGORY="development"
gokhlayeh@9257 6 SHORT_DESC="Kernel headers sanitized for use in userspace."
gokhlayeh@9257 7 MAINTAINER="gokhlayeh@slitaz.org"
pascal@14657 8 LICENSE="GPL2"
gokhlayeh@9257 9 PROVIDE="linux-api-headers"
pascal@14204 10 SOURCE="linux-libre"
pascal@25106 11 TARBALL="$SOURCE-$VERSION.vcdiff"
gokhlayeh@9257 12 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
pascal@25106 13 WGET_URL="http://linux-libre.fsfla.org/pub/linux-libre/releases/old/gen6/$VERSION/$TARBALL"
pascal@25106 14 EXTRA_SOURCE_FILES="https://mirrors.edge.kernel.org/pub/linux/kernel/v${VERSION%%.*}.x/linux-${VERSION%-gnu}.tar.xz"
pascal@25106 15
pascal@25106 16 BUILD_DEPENDS="xdelta"
gokhlayeh@9257 17
pascal@24476 18 # What is the latest version available today?
pascal@24476 19 current_version()
pascal@24476 20 {
pascal@24476 21 wget -O - http://linux-libre.fsfla.org/pub/linux-libre/releases/ 2> /dev/null | \
pascal@24476 22 sed '/-gnu/!d;s|.*ref="||;s|/".*||' | sed '$!d'
pascal@24476 23 }
pascal@24476 24
pascal@25106 25 # Common rules for cook_tmp_toolchain & compile_rules
pascal@25106 26 build_rules()
pascal@25106 27 {
pascal@25106 28 [ -s "$SOURCES_REPOSITORY/$(basename $EXTRA_SOURCE_FILES)" ] ||
pascal@25106 29 busybox wget -P "$SOURCES_REPOSITORY/" "$EXTRA_SOURCE_FILES"
pascal@25106 30 xzcat < $SOURCES_REPOSITORY//$(basename $EXTRA_SOURCE_FILES) > $(basename $EXTRA_SOURCE_FILES .xz)
pascal@25106 31 xdelta3 -d $TARBALL
pascal@25106 32 tar xf ${TARBALL/vcdiff/tar}
pascal@25106 33 mv linux-*/* .
pascal@25106 34 make mrproper &&
pascal@25106 35 make headers_check
pascal@25106 36 }
pascal@25106 37
gokhlayeh@9257 38 # Rules to compile & install the temporary toolchain.
gokhlayeh@9257 39 cook_tmp_toolchain()
gokhlayeh@9257 40 {
pascal@25106 41 build_rules &&
gokhlayeh@9257 42 make INSTALL_HDR_PATH=dest headers_install &&
gokhlayeh@9257 43 cp -r dest/include/* /tools/include
gokhlayeh@9257 44 }
gokhlayeh@9257 45
gokhlayeh@9257 46 # Rules to configure and make the package.
gokhlayeh@9257 47 compile_rules()
gokhlayeh@9257 48 {
pascal@25106 49 build_rules &&
gokhlayeh@9257 50 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
gokhlayeh@9257 51 }
gokhlayeh@9257 52
gokhlayeh@9257 53 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@9257 54 genpkg_rules()
gokhlayeh@9257 55 {
gokhlayeh@9257 56 mkdir -p $fs/usr
pascal@15603 57 cp -a $install/usr/include $fs/usr
gokhlayeh@9257 58 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
gokhlayeh@9257 59 }
gokhlayeh@9257 60
gokhlayeh@9257 61 # Post install commands for Tazpkg.
gokhlayeh@9257 62 post_install()
gokhlayeh@9257 63 {
gokhlayeh@9257 64 # Removed old linux-libre-headers
pascal@18730 65 [ ! -d "$1/var/lib/tazpkg/installed/linux-libre-headers" ] ||
pascal@18730 66 rm -rf "$1/var/lib/tazpkg/installed/linux-libre-headers"
gokhlayeh@9257 67 }