wok-next view linux-module-headers/receipt @ rev 19627
busybox: uclibc-cross-compiler-i486 is not compatible with aufs+tmpfs
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 08 18:20:24 2017 +0100 (2017-02-08) |
parents | 119e586fb823 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-module-headers"
4 VERSION="4.9.4"
5 CATEGORY="development"
6 SHORT_DESC="Header files and scripts for building modules for Linux Kernel"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.kernel.org/"
10 KVERSION="$VERSION-slitaz"
12 WANTED="linux"
13 DEPENDS="slitaz-toolchain"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/lib/modules/$KVERSION $fs/usr
19 cp -a $install/usr/src $fs/usr
20 }
22 pre_remove() {
23 if [ -e "$1/usr/src/linux" ]; then
24 rm -rf "$1/usr/src/linux"
25 fi
26 }
28 post_install() {
29 # Added soft link to make it easier to point to kernel folder
30 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
31 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
32 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build"
33 }