wok-next view linux-module-headers/receipt @ rev 19211

Up python-mako (1.0.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 09:54:21 2016 +0200 (2016-06-14)
parents 9e01bc6321ea
children 119e586fb823
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-module-headers"
4 VERSION="3.2.71"
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 DEPENDS="slitaz-toolchain"
10 WANTED="linux"
11 WEB_SITE="http://kernel.org/"
12 KVERSION=$VERSION-slitaz
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/lib/modules/$KVERSION $fs/usr
18 cp -a $install/usr/src $fs/usr
19 }
21 pre_remove() {
22 if [ -e "$1/usr/src/linux" ]; then
23 rm -rf "$1/usr/src/linux"
24 fi
25 }
27 post_install() {
28 # Added soft link to make it easier to point to kernel folder
29 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
30 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
31 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build"
32 }