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

Up libqcow (20210419)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 20 18:11:13 2022 +0000 (2022-05-20)
parents 89c8d8b6cf48
children 8b627a0fc33a
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"
gokhlayeh@9259 11 TARBALL="$SOURCE-$VERSION.tar.bz2"
gokhlayeh@9257 12 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
pascal@24972 13 WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/old/gen6/$VERSION/$TARBALL"
gokhlayeh@9257 14
pascal@24476 15 # What is the latest version available today?
pascal@24476 16 current_version()
pascal@24476 17 {
pascal@24476 18 wget -O - http://linux-libre.fsfla.org/pub/linux-libre/releases/ 2> /dev/null | \
pascal@24476 19 sed '/-gnu/!d;s|.*ref="||;s|/".*||' | sed '$!d'
pascal@24476 20 }
pascal@24476 21
gokhlayeh@9257 22 # Rules to compile & install the temporary toolchain.
gokhlayeh@9257 23 cook_tmp_toolchain()
gokhlayeh@9257 24 {
gokhlayeh@9257 25 cd $src
gokhlayeh@9257 26 make mrproper &&
gokhlayeh@9257 27 make headers_check &&
gokhlayeh@9257 28 make INSTALL_HDR_PATH=dest headers_install &&
gokhlayeh@9257 29 cp -r dest/include/* /tools/include
gokhlayeh@9257 30 }
gokhlayeh@9257 31
gokhlayeh@9257 32 # Rules to configure and make the package.
gokhlayeh@9257 33 compile_rules()
gokhlayeh@9257 34 {
gokhlayeh@9257 35 cd $src
gokhlayeh@9257 36 make mrproper &&
gokhlayeh@9257 37 make headers_check &&
gokhlayeh@9257 38 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
gokhlayeh@9257 39 }
gokhlayeh@9257 40
gokhlayeh@9257 41 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@9257 42 genpkg_rules()
gokhlayeh@9257 43 {
gokhlayeh@9257 44 mkdir -p $fs/usr
pascal@15603 45 cp -a $install/usr/include $fs/usr
gokhlayeh@9257 46 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
gokhlayeh@9257 47 }
gokhlayeh@9257 48
gokhlayeh@9257 49 # Post install commands for Tazpkg.
gokhlayeh@9257 50 post_install()
gokhlayeh@9257 51 {
gokhlayeh@9257 52 # Removed old linux-libre-headers
pascal@18730 53 [ ! -d "$1/var/lib/tazpkg/installed/linux-libre-headers" ] ||
pascal@18730 54 rm -rf "$1/var/lib/tazpkg/installed/linux-libre-headers"
gokhlayeh@9257 55 }