wok-current view linux-libre-source/receipt @ rev 15860

libmowgli: update genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 30 09:02:32 2014 +0000 (2014-01-30)
parents 03a6791abff6
children 9e8d7fd12ee2
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-libre-source"
4 VERSION="2.6.37-gnu"
5 CATEGORY="development"
6 SHORT_DESC="The Linux Libre kernel source files."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="GPL2"
9 PROVIDE="linux-source"
10 WANTED="linux-libre"
11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
12 DEPENDS="linux-libre 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/$VERSION-slitaz \
21 $fs/usr/bin
22 cp -a $WOK/$WANTED/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 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
27 # Copy Aufs2 source files
28 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
29 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2
30 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
31 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
32 $fs/usr/src/kernel-patches/slitaz/aufs2
33 fi
34 ln -s /usr/src/linux-$VERSION \
35 $fs/lib/modules/$VERSION-slitaz/source
36 }