wok-next view linux-source/receipt @ rev 15670

Up linux (3.2.53)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 18 08:40:48 2013 +0000 (2013-12-18)
parents ad59999b3fce
children df406884857b
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-source"
4 VERSION="3.2.53"
5 BASEVER="${VERSION:0:3}"
6 CATEGORY="development"
7 SHORT_DESC="The Linux kernel source files."
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 WANTED="linux"
11 WEB_SITE="http://www.kernel.org/"
12 DEPENDS="linux slitaz-toolchain ncurses-dev perl"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
18 local AUFSDIR="aufs-${_AUFSVER}"
19 mkdir -p $fs/usr/src/kernel-patches \
20 $fs/lib/modules/$BASEVER-slitaz \
21 $fs/usr/bin $fs/usr/sbin
22 cp -a $WOK/$WANTED/source/slitaz $fs/usr/src/kernel-patches
23 cp -a $stuff/buildtaz $fs/usr/src/kernel-patches/slitaz
24 cp -a $stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz
25 cp -a $stuff/get-linux-source $fs/usr/bin
26 cp -a $stuff/rdev $fs/usr/sbin
27 ln -s rdev $fs/usr/sbin/rootflags
28 ln -s rdev $fs/usr/sbin/ramsize
29 ln -s rdev $fs/usr/sbin/vidmode
30 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
31 # Copy Aufs2 source files
32 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
33 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2
34 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
35 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
36 $fs/usr/src/kernel-patches/slitaz/aufs2
37 fi
38 ln -s /usr/src/linux-$VERSION \
39 $fs/lib/modules/$BASEVER-slitaz/source
40 }