wok annotate linux64-module-headers/receipt @ rev 17370

Add linux64-module-headers
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 21 13:38:52 2014 +0100 (2014-11-21)
parents
children d963cb47d215
rev   line source
pascal@17370 1 # SliTaz package receipt.
pascal@17370 2
pascal@17370 3 PACKAGE="linux64-module-headers"
pascal@17370 4 VERSION="3.2.53"
pascal@17370 5 CATEGORY="development"
pascal@17370 6 SHORT_DESC="Header files and scripts for building modules for linux kernel."
pascal@17370 7 MAINTAINER="devel@slitaz.org"
pascal@17370 8 LICENSE="GPL2"
pascal@17370 9 DEPENDS="slitaz-toolchain"
pascal@17370 10 WANTED="linux"
pascal@17370 11 WEB_SITE="http://kernel.org/"
pascal@17370 12 KVERSION=$VERSION-slitaz64
pascal@17370 13
pascal@17370 14 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17370 15 genpkg_rules()
pascal@17370 16 {
pascal@17370 17 local path
pascal@17370 18 mkdir -p $fs/lib/modules/$KVERSION $fs/usr
pascal@17370 19 ln -sf /$path $fs/lib/modules/$KVERSION/build
pascal@17370 20 cp -a $install/linux64/usr/src $fs/usr
pascal@17370 21 }
pascal@17370 22
pascal@17370 23 pre_remove() {
pascal@17370 24 if [ -e $1/usr/src/linux ]; then
pascal@17370 25 rm -rf $1/usr/src/linux
pascal@17370 26 fi
pascal@17370 27 }
pascal@17370 28
pascal@17370 29 post_install() {
pascal@17370 30 # Added soft link to make it easier to point to kernel folder
pascal@17370 31 [ -L $1/usr/src/linux ] && rm -f $1/usr/src/linux
pascal@17370 32 ln -sf /usr/src/linux-$KVERSION $1/usr/src/linux
pascal@17370 33 }