Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/linux-libc-headers/linux-libc-headers-2.6.37-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1671 - (show annotations) (download)
Sun Jan 23 00:13:44 2011 UTC (13 years, 4 months ago) by niro
File size: 940 byte(s)
-renamed variable ALX_REMOVE_DEPRECATED_MAGE_TARGETS to REMOVE_DEPRECATED_MAGE_TARGETS
1 # $Id$
2
3 PNAME="linux-libc-headers"
4 PVER="2.6.37"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-kernel"
8 STATE="unstable"
9
10 DESCRIPTION="The Linux-Libc-Headers package contains the sanitized kernel headers."
11 HOMEPAGE="http://kernel.org/"
12
13 DEPEND=""
14
15 PROVIDE="virtual/kernel-headers"
16
17 SRCFILE="linux-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/linux-${PVER}"
19
20 REMOVE_DEPRECATED_MAGE_TARGETS=1
21 sminclude mtools alx
22
23 SRC_URI=(
24 http://www.kernel.org/pub/linux/kernel/v${PVER:0:3}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 )
27
28 # only x.y.z releases not x.y.z.patchlevel
29 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"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 }
35
36 src_compile()
37 {
38 cd ${SRCDIR}
39 make mrproper || die
40 make ARCH=${ARCH/i*86/x86} headers_check || die
41 }
42
43 src_install()
44 {
45 cd ${SRCDIR}
46 make ARCH=${ARCH/i*86/x86} INSTALL_HDR_PATH=${BINDIR}/usr headers_install || die
47 }