# $Id$ PNAME="linux-musl-headers" PVER="3.12.6_6" PBUILD="r1" PCAT="sys-kernel" DESCRIPTION="Linux kernel headers sanitized for use with musl libc." HOMEPAGE="https://github.com/sabotage-linux/kernel-headers" DEPEND=">= sys-libs/musl-1.1" SRCFILE="v${PVER/_/-}.tar.gz" SRCDIR="${BUILDDIR}/kernel-headers-${PVER/_/-}" sminclude mbuild SRC_URI=( https://github.com/sabotage-linux/kernel-headers/archive/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) # no need to waste time here msetfeature "!strip" UP2SEPERATOR="v" UP2PVER="${PVER/_/-}" UP2DATE="updatecmd https://github.com/sabotage-linux/kernel-headers/releases | highesttarball gz" src_compile() { cd ${SRCDIR} mmake ARCH=${ARCH/i*86/x86} prefix=/usr/$(mlibdir)/musl || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} ARCH=${ARCH/i*86/x86} prefix=/usr/$(mlibdir)/musl install || die }