Magellan Linux

Diff of /trunk/extras/bcache-tools/bcache-tools-1.0.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 32074 by niro, Fri Mar 22 23:28:55 2019 UTC revision 32075 by niro, Fri Mar 22 23:49:49 2019 UTC
# Line 11  HOMEPAGE="http://bcache.evilpiepirate.or Line 11  HOMEPAGE="http://bcache.evilpiepirate.or
11    
12  DEPEND=">= sys-apps/util-linux-2"  DEPEND=">= sys-apps/util-linux-2"
13    
14    SDEPEND=">= dev-util/pkgconfig-0.25"
15    
16  SRCFILE="v${PVER}.tar.gz"  SRCFILE="v${PVER}.tar.gz"
17  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18    
19  msetfeature "!check" # no check target in makefile  msetfeature "!check" # no check target in makefile
20  sminclude mbuild  sminclude mtools udev dracut
21    
22  SRC_URI=(  SRC_URI=(
23   https://github.com/g2p/${PNAME}/archive/${SRCFILE}   https://github.com/g2p/${PNAME}/archive/${SRCFILE}
# Line 32  src_prepare() Line 34  src_prepare()
34    
35   # fix CFLAGS and fixed compile issues   # fix CFLAGS and fixed compile issues
36   sed -i -e '/^CFLAGS/s:-O2::' -e '/^CFLAGS/s:-g:-std=gnu89:' Makefile || die   sed -i -e '/^CFLAGS/s:-O2::' -e '/^CFLAGS/s:-g:-std=gnu89:' Makefile || die
37    
38     # fix udev and dracut dir
39     sed -i -e "s:^\(UDEVLIBDIR=\).*:\1$(mget-udev-dir):" \
40     -e "s:^\(DRACUTLIBDIR=\).*:\1$(mget-dracut-dir):" \
41     Makefile || die
42  }  }
43    
44  src_compile()  src_compile()
# Line 39  src_compile() Line 46  src_compile()
46   cd ${SRCDIR}   cd ${SRCDIR}
47   mmake || die   mmake || die
48  }  }
49    
50    src_install()
51    {
52     cd ${SRCDIR}
53    
54     # Makefile does not create these
55     minstalldir /usr/sbin || die
56     minstalldir /usr/share/man/man8/ || die
57     minstalldir $(mget-udev-dir)/rules.d || die
58    
59     mmake DESTDIR=${BINDIR} install || die
60    
61     # we do not support initcpio
62     mdelete -r /usr/lib/initcpio || die
63    
64     minstalldocs COPYING README || die
65    }

Legend:
Removed from v.32074  
changed lines
  Added in v.32075