# $Id$ PNAME="linux-firmware" PVER="20180618" PBUILD="r1" PCAT="sys-kernel" DESCRIPTION="Firmware files used by the Linux kernel." HOMEPAGE="http://www.kernel.org/" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools msetfeature "!strip" SRC_URI=( mirror://${PNAME}/${SRCFILE} ) UP2DATE="echo ${PVER}" src_prepare() { munpack ${SRCFILE} || die } src_install() { cd ${SRCDIR} minstalldir /usr/lib/firmware || die mcopy -a ${SRCDIR}/\* /usr/lib/firmware || die # cleanup unused files find ${BINDIR}/usr/lib/firmware -name \*.asm -exec rm '{}' ';' || die # move licenses to the right location and gzip them find ${BINDIR}/usr/lib/firmware -name LICENCE\* -exec rm '{}' ';' || die find ${BINDIR}/usr/lib/firmware -name LICENSE\* -exec rm '{}' ';' || die find ${BINDIR}/usr/lib/firmware -name GPL\* -exec rm '{}' ';' || die rm ${BINDIR}/usr/lib/firmware/WHENCE || die minstalldocs LICENCE* LICENSE* WHENCE GPL* || die }