Magellan Linux

Contents of /smage/branches/alx07x-unstable/extras/linux-musl-headers/linux-musl-headers-3.12.6_6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12375 - (show annotations) (download)
Mon Sep 3 13:26:47 2018 UTC (5 years, 7 months ago) by niro
File size: 861 byte(s)
-release branches/alx07x-unstable
1 # $Id$
2
3 PNAME="linux-musl-headers"
4 PVER="3.12.6_6"
5 PBUILD="r1"
6
7 PCAT="sys-kernel"
8
9 DESCRIPTION="Linux kernel headers sanitized for use with musl libc."
10 HOMEPAGE="https://github.com/sabotage-linux/kernel-headers"
11
12 DEPEND=">= sys-libs/musl-1.1"
13
14 SRCFILE="v${PVER/_/-}.tar.gz"
15 SRCDIR="${BUILDDIR}/kernel-headers-${PVER/_/-}"
16
17 sminclude mbuild
18
19 SRC_URI=(
20 https://github.com/sabotage-linux/kernel-headers/archive/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 # no need to waste time here
25 msetfeature "!strip"
26
27 UP2SEPERATOR="v"
28 UP2PVER="${PVER/_/-}"
29 UP2DATE="updatecmd https://github.com/sabotage-linux/kernel-headers/releases | highesttarball gz"
30
31 src_compile()
32 {
33 cd ${SRCDIR}
34 mmake ARCH=${ARCH/i*86/x86} prefix=/usr/$(mlibdir)/musl || die
35 }
36
37 src_install()
38 {
39 cd ${SRCDIR}
40 mmake DESTDIR=${BINDIR} ARCH=${ARCH/i*86/x86} prefix=/usr/$(mlibdir)/musl install || die
41 }