wok-4.x view linux-source/receipt @ rev 7754
get-opera: use deb archive, save 3MB (tanks Ruari)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 21 12:49:01 2010 +0100 (2010-12-21) |
parents | 99bfefdf720a |
children | 03d4663c81fa |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-source"
4 VERSION="2.6.36"
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 }