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

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 731f74708293
children 5ffe59e2de3a
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/svnwiki/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 }