wok view linux-libre-api-headers/receipt @ rev 25148

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