wok-6.x annotate linux-module-headers/receipt @ rev 21030
updated hd2u (1.0.3 -> 1.0.4)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 10 17:47:57 2019 +0100 (2019-03-10) |
parents | b586ad58c401 |
children | 73f36875e5a7 |
rev | line source |
---|---|
slaxemulator@6707 | 1 # SliTaz package receipt. |
slaxemulator@6707 | 2 |
slaxemulator@6707 | 3 PACKAGE="linux-module-headers" |
pascal@20261 | 4 VERSION="3.16.55" |
slaxemulator@6707 | 5 CATEGORY="development" |
slaxemulator@6707 | 6 SHORT_DESC="Header files and scripts for building modules for linux kernel." |
pascal@13025 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
pascal@20290 | 9 DEPENDS="slitaz-toolchain uclibc-cross-compiler-x86_64 xz" |
slaxemulator@6707 | 10 WANTED="linux" |
slaxemulator@6707 | 11 WEB_SITE="http://kernel.org/" |
pankso@15855 | 12 KVERSION=$VERSION-slitaz |
slaxemulator@6707 | 13 |
slaxemulator@6707 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6707 | 15 genpkg_rules() |
slaxemulator@6707 | 16 { |
pascal@17373 | 17 mkdir -p $fs/lib/modules/$KVERSION $fs/usr |
pascal@17373 | 18 cp -a $install/usr/src $fs/usr |
pascal@20266 | 19 [ -e $fs/usr/src/linux-$VERSION-slitaz/include/linux/version.h ] || |
pascal@20265 | 20 ln -s ../generated/uapi/linux/version.h \ |
pascal@20266 | 21 $fs/usr/src/linux-$VERSION-slitaz/include/linux/version.h |
slaxemulator@6707 | 22 } |
slaxemulator@6707 | 23 |
slaxemulator@7666 | 24 pre_remove() { |
pascal@18730 | 25 if [ -e "$1/usr/src/linux" ]; then |
pascal@18730 | 26 rm -rf "$1/usr/src/linux" |
slaxemulator@7666 | 27 fi |
slaxemulator@7666 | 28 } |
slaxemulator@7666 | 29 |
slaxemulator@7666 | 30 post_install() { |
slaxemulator@7666 | 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@18831 | 34 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build" |
slaxemulator@7666 | 35 } |