Contents of /trunk/core/efivar/efivar-37-r2.smage2
Parent Directory | Revision Log
Revision 32065 -
(show annotations)
(download)
Fri Mar 22 21:36:50 2019 UTC (5 years, 6 months ago) by niro
File size: 1483 byte(s)
Fri Mar 22 21:36:50 2019 UTC (5 years, 6 months ago) by niro
File size: 1483 byte(s)
auto added: ver bump to 37-r2
1 | # $Id$ |
2 | |
3 | PNAME="efivar" |
4 | PVER="37" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="sys-apps" |
8 | |
9 | DESCRIPTION="Tools and library to manipulate EFI variables." |
10 | HOMEPAGE="https://github.com/rhinstaller/efivar" |
11 | |
12 | DEPEND=">= dev-libs/popt-1.16" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude mtools rpath |
18 | |
19 | SRC_URI=( |
20 | #https://github.com/rhboot/${PNAME}/archive/${SRCFILE} |
21 | https://github.com/rhboot/${PNAME}/releases/download/${PVER}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2DATE="updatecmd https://github.com/rhboot/${PNAME}/releases | highesttarball" |
26 | |
27 | src_prepare() |
28 | { |
29 | munpack ${SRCFILE} || die |
30 | cd ${SRCDIR} |
31 | |
32 | # no optimizations |
33 | #sed 's:-O0:-Os:g' -i Make.defaults || die |
34 | # fix rpath |
35 | #sed 's:-rpath,$(TOPDIR)/src:-rpath,$(libdir):g' -i src/test/Makefile || die |
36 | } |
37 | |
38 | src_compile() |
39 | { |
40 | cd ${SRCDIR} |
41 | |
42 | maddflag CFLAGS "-flto" || die |
43 | export CFLAGS |
44 | |
45 | # not parallel safe |
46 | mmake -j1 V=1 libdir="/usr/$(mlibdir)/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir="/usr/include/" || die |
47 | mmake -j1 V=1 -C src/test libdir="/usr/$(mlibdir)/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir="/usr/include/" || die |
48 | } |
49 | |
50 | src_install() |
51 | { |
52 | cd ${SRCDIR} |
53 | mmake -j1 V=1 DESTDIR=${BINDIR} libdir="/usr/$(mlibdir)/" bindir="/usr/bin/" mandir="/usr/share/man/" includedir="/usr/include/" install || die |
54 | |
55 | minstalldir /usr/bin || die |
56 | minstallexec src/test/tester /usr/bin/efivar-tester || die |
57 | |
58 | # remove rpath |
59 | mdeleterpath || die |
60 | |
61 | minstalldocs AUTHORS COPYING README* TODO || die |
62 | } |