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} |
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() |
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 |
|
} |