wok-6.x view linux-libre-api-headers/receipt @ rev 22625

updated cyrus-imapd and cyrus-impad-dev (2.4.17 -> 3.0.13)
author Hans-G?nter Theisgen
date Sun Jan 12 16:58:49 2020 +0100 (2020-01-12)
parents 9e01bc6321ea
children 89c8d8b6cf48
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.tar.bz2"
12 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
13 WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/$VERSION/$TARBALL"
15 # Rules to compile & install the temporary toolchain.
16 cook_tmp_toolchain()
17 {
18 cd $src
19 make mrproper &&
20 make headers_check &&
21 make INSTALL_HDR_PATH=dest headers_install &&
22 cp -r dest/include/* /tools/include
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 make mrproper &&
30 make headers_check &&
31 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/include $fs/usr
39 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
40 }
42 # Post install commands for Tazpkg.
43 post_install()
44 {
45 # Removed old linux-libre-headers
46 [ ! -d "$1/var/lib/tazpkg/installed/linux-libre-headers" ] ||
47 rm -rf "$1/var/lib/tazpkg/installed/linux-libre-headers"
48 }