wok-current annotate linux64-module-headers/receipt @ rev 22371

updated kivy (1.4.1 -> 1.10.1)
author Hans-G?nter Theisgen
date Tue Nov 26 17:37:07 2019 +0100 (2019-11-26)
parents c4e857aec2bd
children 73f36875e5a7
rev   line source
pascal@17370 1 # SliTaz package receipt.
pascal@17370 2
pascal@17370 3 PACKAGE="linux64-module-headers"
pascal@20261 4 VERSION="3.16.55"
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@20266 19 [ -e $fs/usr/src/linux-$VERSION-slitaz64/include/linux/version.h ] ||
pascal@20265 20 ln -s ../generated/uapi/linux/version.h \
pascal@20266 21 $fs/usr/src/linux-$VERSION-slitaz64/include/linux/version.h
pascal@17370 22 }
pascal@17370 23
pascal@17370 24 pre_remove() {
pascal@18730 25 if [ -e "$1/usr/src/linux" ]; then
pascal@18730 26 rm -rf "$1/usr/src/linux"
pascal@17370 27 fi
pascal@17370 28 }
pascal@17370 29
pascal@17370 30 post_install() {
pascal@17370 31 # Added soft link to make it easier to point to kernel folder
pascal@18730 32 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
pascal@18730 33 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
pascal@18830 34 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build"
pascal@17370 35 }