Magellan Linux

Annotation of /branches/R11-unstable/extras/bcache-tools/bcache-tools-1.0.8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32858 - (hide annotations) (download)
Mon Apr 29 13:49:50 2019 UTC (5 years ago) by niro
File size: 1303 byte(s)
-release branches/R11-unstable
1 niro 32071 # $Id$
2    
3     PNAME="bcache-tools"
4     PVER="1.0.8"
5     PBUILD="r1"
6    
7     PCAT="sys-fs"
8    
9     DESCRIPTION="Userspace tools Linux kernel block layer cache."
10     HOMEPAGE="http://bcache.evilpiepirate.org/"
11    
12     DEPEND=">= sys-apps/util-linux-2"
13    
14 niro 32075 SDEPEND=">= dev-util/pkgconfig-0.25"
15    
16 niro 32071 SRCFILE="v${PVER}.tar.gz"
17     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18    
19 niro 32073 msetfeature "!check" # no check target in makefile
20 niro 32075 sminclude mtools udev dracut
21 niro 32071
22     SRC_URI=(
23     https://github.com/g2p/${PNAME}/archive/${SRCFILE}
24     mirror://${PNAME}/${SRCFILE}
25     )
26    
27     UP2SEPERATOR="v"
28     UP2DATE="updatecmd https://github.com/g2p/bcache-tools/releases | highesttarball gz"
29    
30 niro 32072 src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     cd ${SRCDIR}
34    
35     # fix CFLAGS and fixed compile issues
36     sed -i -e '/^CFLAGS/s:-O2::' -e '/^CFLAGS/s:-g:-std=gnu89:' Makefile || die
37 niro 32075
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 niro 32072 }
43    
44 niro 32071 src_compile()
45     {
46     cd ${SRCDIR}
47     mmake || die
48     }
49 niro 32075
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     }