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

Up: libmpdclient (2.10)
author Alexander Medvedev <devl547@gmail.com>
date Mon Jan 09 19:34:43 2017 +0000 (2017-01-09)
parents 9e01bc6321ea
children ffc20f9bd49f
rev   line source
pascal@17370 1 # SliTaz package receipt.
pascal@17370 2
pascal@17370 3 PACKAGE="linux64-module-headers"
pascal@18296 4 VERSION="3.2.71"
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 mkdir -p $fs/lib/modules/$KVERSION $fs/usr
pascal@17370 18 cp -a $install/linux64/usr/src $fs/usr
pascal@17370 19 }
pascal@17370 20
pascal@17370 21 pre_remove() {
pascal@18730 22 if [ -e "$1/usr/src/linux" ]; then
pascal@18730 23 rm -rf "$1/usr/src/linux"
pascal@17370 24 fi
pascal@17370 25 }
pascal@17370 26
pascal@17370 27 post_install() {
pascal@17370 28 # Added soft link to make it easier to point to kernel folder
pascal@18730 29 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
pascal@18730 30 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
pascal@18830 31 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build"
pascal@17370 32 }