Magellan Linux

Contents of /smage/trunk/core/linux-libc-headers/linux-libc-headers-3.0.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2842 - (show annotations) (download)
Fri Sep 2 19:21:20 2011 UTC (12 years, 9 months ago) by niro
File size: 897 byte(s)
-fixed SRCFILE and no deprecated removal
1 # $Id$
2
3 PNAME="linux-libc-headers"
4 PVER="3.0.0"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-kernel"
8
9 DESCRIPTION="The Linux-Libc-Headers package contains the sanitized kernel headers."
10 HOMEPAGE="http://kernel.org/"
11
12 DEPEND=""
13
14 PROVIDE="virtual/kernel-headers"
15
16 SRCFILE="linux-${PVER/.0/}.tar.bz2"
17 SRCDIR="${BUILDDIR}/linux-${PVER/.0/}"
18
19 sminclude mtools alx
20
21 SRC_URI=(
22 http://www.kernel.org/pub/linux/kernel/v${PVER:0:3}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 # only x.y.z releases not x.y.z.patchlevel
27 UP2DATE="updatecmd http://www.kernel.org/ | grep -A3 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p' | cut -d. -f1-3"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 }
33
34 src_compile()
35 {
36 cd ${SRCDIR}
37 make mrproper || die
38 make ARCH=${ARCH/i*86/x86} headers_check || die
39 }
40
41 src_install()
42 {
43 cd ${SRCDIR}
44 make ARCH=${ARCH/i*86/x86} INSTALL_HDR_PATH=${BINDIR}/usr headers_install || die
45 }