wok-current view linux64-module-headers/receipt @ rev 20265
linux-module-headers: add include/linux/version.h
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 15 17:57:37 2018 +0100 (2018-03-15) |
parents | 708b5293dd29 |
children | b586ad58c401 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux64-module-headers"
4 VERSION="3.16.55"
5 CATEGORY="development"
6 SHORT_DESC="Header files and scripts for building modules for linux kernel."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 DEPENDS="slitaz-toolchain"
10 WANTED="linux"
11 WEB_SITE="http://kernel.org/"
12 KVERSION=$VERSION-slitaz64
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/lib/modules/$KVERSION $fs/usr
18 cp -a $install/linux64/usr/src $fs/usr
19 ln -s ../generated/uapi/linux/version.h \
20 $install/usr/src/linux-$VERSION-slitaz64/include/linux/version.h
21 }
23 pre_remove() {
24 if [ -e "$1/usr/src/linux" ]; then
25 rm -rf "$1/usr/src/linux"
26 fi
27 }
29 post_install() {
30 # Added soft link to make it easier to point to kernel folder
31 [ -L "$1/usr/src/linux" ] && rm -f "$1/usr/src/linux"
32 ln -sf /usr/src/linux-$KVERSION "$1/usr/src/linux"
33 ln -sf /usr/src/linux-$KVERSION "$1/lib/modules/$KVERSION/build"
34 }