Magellan Linux

Contents of /trunk/core/linux-firmware/linux-firmware-20180618-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31242 - (show annotations) (download)
Mon Jun 18 09:41:45 2018 UTC (5 years, 10 months ago) by niro
File size: 976 byte(s)
auto added: ver bump to 20180618-r1
1 # $Id$
2
3 PNAME="linux-firmware"
4 PVER="20180618"
5 PBUILD="r1"
6
7 PCAT="sys-kernel"
8
9 DESCRIPTION="Firmware files used by the Linux kernel."
10 HOMEPAGE="http://www.kernel.org/"
11
12 SRCFILE="${PNAME}-${PVER}.tar.bz2"
13 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
14
15 sminclude mtools
16 msetfeature "!strip"
17
18 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
19
20 UP2DATE="echo ${PVER}"
21
22 src_prepare()
23 {
24 munpack ${SRCFILE} || die
25 }
26
27 src_install()
28 {
29 cd ${SRCDIR}
30 minstalldir /usr/lib/firmware || die
31 mcopy -a ${SRCDIR}/\* /usr/lib/firmware || die
32
33 # cleanup unused files
34 find ${BINDIR}/usr/lib/firmware -name \*.asm -exec rm '{}' ';' || die
35
36 # move licenses to the right location and gzip them
37 find ${BINDIR}/usr/lib/firmware -name LICENCE\* -exec rm '{}' ';' || die
38 find ${BINDIR}/usr/lib/firmware -name LICENSE\* -exec rm '{}' ';' || die
39 find ${BINDIR}/usr/lib/firmware -name GPL\* -exec rm '{}' ';' || die
40 rm ${BINDIR}/usr/lib/firmware/WHENCE || die
41 minstalldocs LICENCE* LICENSE* WHENCE GPL* || die
42 }