wok view linux64-module-headers/receipt @ rev 18552
Up slitaz-tools(952)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 07 22:01:33 2015 +0200 (2015-11-07) |
parents | d963cb47d215 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-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-slitaz64
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/lib/modules/$KVERSION $fs/usr
18 ln -sf /usr/src/linux-$KVERSION $fs/lib/modules/$KVERSION/build
19 cp -a $install/linux64/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 }