wok-stable view linux-source/receipt @ rev 8536

Fix: No need for _pkg to be set in xorg-server-Xnest and xorg-server-Xvfb.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Feb 13 03:51:34 2011 +0000 (2011-02-13)
parents 35a10ca4f67b
children 1d89aa1672da
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-source"
4 VERSION="2.6.37"
5 CATEGORY="development"
6 SHORT_DESC="The Linux kernel source files."
7 MAINTAINER="devel@slitaz.org"
8 WANTED="linux"
9 WEB_SITE="http://www.kernel.org/"
10 DEPENDS="linux slitaz-toolchain ncurses-dev perl"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
16 local AUFSDIR="aufs-${_AUFSVER}"
17 mkdir -p $fs/usr/src/kernel-patches \
18 $fs/lib/modules/$VERSION-slitaz \
19 $fs/usr/bin
20 cp -a $src/slitaz $fs/usr/src/kernel-patches
21 cp -a stuff/buildtaz $fs/usr/src/kernel-patches/slitaz
22 cp -a stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz
23 cp -a stuff/get-linux-source $fs/usr/bin
24 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
25 # Copy Aufs2 source files
26 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
27 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2
28 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
29 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
30 $fs/usr/src/kernel-patches/slitaz/aufs2
31 fi
32 ln -s /usr/src/linux-$VERSION \
33 $fs/lib/modules/$VERSION-slitaz/source
34 }