Magellan Linux

Annotation of /trunk/core/mtools/mtools-4.0.21-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31597 - (hide annotations) (download)
Mon Dec 3 14:20:48 2018 UTC (5 years, 5 months ago) by niro
File size: 953 byte(s)
auto added: ver bump to 4.0.21-r1
1 niro 31597 # $Id$
2    
3     PNAME="mtools"
4     PVER="4.0.21"
5     PBUILD="r1"
6    
7     PCAT="sys-fs"
8    
9     DESCRIPTION="Utilities to access MS-DOS disks from Unix without mounting them."
10     HOMEPAGE="http://mtools.linux.lu/"
11    
12     DEPEND=">= virtual/glibc"
13    
14     SRCFILE="${PNAME}-${PVER}.tar.bz2"
15     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16    
17     sminclude mtools
18    
19     SRC_URI=(
20     gnu://${PNAME}/${SRCFILE}
21     mirror://${PNAME}/${SRCFILE}
22     )
23    
24     UP2DATE="updatecmd_gnu ${PNAME}"
25    
26     src_prepare()
27     {
28     munpack ${SRCFILE} || die
29     cd ${SRCDIR}
30    
31     # do not complain about existing directories
32     sed -i "s:mkdir:mkdir -p:" mkinstalldirs || die
33     }
34    
35     src_compile()
36     {
37     cd ${SRCDIR}
38     mconfigure --sysconfdir=/etc/mtools --without-x || die
39     mmake || die
40     }
41    
42     src_install()
43     {
44     cd ${SRCDIR}
45     mmake DESTDIR=${BINDIR} install || die
46    
47     # install default config
48     minstalldir /etc/mtools || die
49     minstallfile mtools.conf /etc/mtools || die
50     sed -i '/^SAMPLE FILE$/s:^:#:' ${BINDIR}/etc/mtools/mtools.conf || die
51    
52     minstalldocs COPYING NEWS README || die
53     }