wok-6.x annotate linux-source/receipt @ rev 23666

created recipe for spacefm-lang
author Hans-G?nter Theisgen
date Sat Apr 25 07:35:58 2020 +0100 (2020-04-25)
parents 86790a278e70
children
rev   line source
pascal@1093 1 # SliTaz package receipt.
pascal@1093 2
pascal@1093 3 PACKAGE="linux-source"
pascal@20261 4 VERSION="3.16.55"
pascal@1093 5 CATEGORY="development"
pascal@1093 6 SHORT_DESC="The Linux kernel source files."
pankso@3864 7 MAINTAINER="devel@slitaz.org"
pascal@14657 8 LICENSE="GPL2"
pascal@1093 9 WANTED="linux"
pascal@20421 10 WEB_SITE="https://www.kernel.org/"
pascal@16535 11 DEPENDS="linux slitaz-toolchain ncurses-dev perl xz lzma patch busybox-boot"
pascal@1093 12
pascal@1093 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1093 14 genpkg_rules()
pascal@1093 15 {
slaxemulator@7297 16 local _AUFSVER=`grep ^VERSION= $WOK/aufs/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
slaxemulator@7297 17 local AUFSDIR="aufs-${_AUFSVER}"
slaxemulator@6977 18 mkdir -p $fs/usr/src/kernel-patches \
pankso@15855 19 $fs/lib/modules/$VERSION-slitaz \
pascal@13194 20 $fs/usr/bin $fs/usr/sbin
mojo@12802 21 cp -a $WOK/$WANTED/source/slitaz $fs/usr/src/kernel-patches
pankso@12285 22 cp -a $stuff/buildtaz $fs/usr/src/kernel-patches/slitaz
pankso@12285 23 cp -a $stuff/make-tazpkg.u $fs/usr/src/kernel-patches/slitaz
pankso@12285 24 cp -a $stuff/get-linux-source $fs/usr/bin
pascal@13194 25 cp -a $stuff/rdev $fs/usr/sbin
pascal@13194 26 ln -s rdev $fs/usr/sbin/rootflags
pascal@13194 27 ln -s rdev $fs/usr/sbin/ramsize
pascal@13194 28 ln -s rdev $fs/usr/sbin/vidmode
slaxemulator@6979 29 sed -i "s|=XXX|=$VERSION|g" $fs/usr/bin/get-linux-source
pascal@4630 30 # Copy Aufs2 source files
slaxemulator@7202 31 if [ -d $WOK/$WANTED/$AUFSDIR ]; then
slaxemulator@6975 32 mkdir $fs/usr/src/kernel-patches/slitaz/aufs2
slaxemulator@7202 33 cp -a $WOK/$WANTED/$AUFSDIR/Documentation \
slaxemulator@7202 34 $WOK/$WANTED/$AUFSDIR/fs $WOK/$WANTED/$AUFSDIR/include \
slaxemulator@6975 35 $fs/usr/src/kernel-patches/slitaz/aufs2
pascal@4630 36 fi
slaxemulator@6977 37 ln -s /usr/src/linux-$VERSION \
pankso@15855 38 $fs/lib/modules/$VERSION-slitaz/source
pascal@1093 39 }
pascal@20608 40
pascal@20608 41 # Pre and post install commands for Tazpkg.
pascal@20608 42 post_install()
pascal@20608 43 {
pascal@20608 44 rm $1/usr/src/linux 2> /dev/null
pascal@20608 45 ln -s linux-$VERSION $1/usr/src/linux
pascal@20608 46 }
pascal@20608 47
pascal@20608 48 pre_remove()
pascal@20608 49 {
pascal@20608 50 rm $1/usr/src/linux 2> /dev/null
pascal@20608 51 }