wok-next view linux-libre-api-headers/receipt @ rev 21196

updated scrollz again (2.2.3 -> 2.3)
author Hans-G?nter Theisgen
date Thu Oct 03 16:09:40 2019 +0100 (2019-10-03)
parents d5aab818505e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-api-headers"
4 VERSION="2.6.37-gnu"
5 CATEGORY="development"
6 SHORT_DESC="Kernel headers sanitized for use in userspace"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.fsfla.org/ikiwiki/selibre/linux-libre/"
11 SOURCE="linux-libre"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/$VERSION/$TARBALL"
15 BUILD_DEPENDS="perl"
17 # Compile & install the temporary toolchain.
18 cook_tmp_toolchain() {
19 cd $src
20 make mrproper &&
21 make headers_check &&
22 make INSTALL_HDR_PATH=dest headers_install &&
23 cp -r dest/include/* /tools/include
24 }
26 compile_rules() {
27 make mrproper &&
28 make headers_check &&
29 make INSTALL_HDR_PATH=$install/usr headers_install
30 }
32 genpkg_rules() {
33 mkdir -p $fs/usr
34 cp -a $install/usr/include $fs/usr
35 rm -f $(find $fs -name .install -or -name ..install.cmd)
36 PROVIDE="linux-api-headers"
37 }
39 post_install() {
40 # Removed old linux-libre-headers
41 [ ! -d "$1/var/lib/tazpkg/installed/linux-libre-headers" ] ||
42 rm -rf "$1/var/lib/tazpkg/installed/linux-libre-headers"
43 }