Magellan Linux

Annotation of /branches/R11-stable/core/dosfstools/dosfstools-3.0.26-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21076 - (hide annotations) (download)
Mon Mar 10 08:48:25 2014 UTC (10 years, 2 months ago) by niro
Original Path: trunk/core/dosfstools/dosfstools-3.0.26-r1.smage2
File size: 1016 byte(s)
auto added: ver bump to 3.0.26-r1
1 niro 21076 # $Id$
2    
3     PNAME="dosfstools"
4     PVER="3.0.26"
5     PBUILD="r1"
6    
7     PCAT="sys-fs"
8    
9     DESCRIPTION="Tools to handle DOS filesystems."
10     HOMEPAGE="http://www.daniel-baumann.ch/software/dosfstools/"
11    
12     DEPEND=">= virtual/glibc"
13     SDEPEND=">= virtual/sed"
14    
15     SRCFILE="${PNAME}-${PVER}.tar.xz"
16     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17    
18     SRC_URI=(
19     http://www.daniel-baumann.ch/files/software/${PNAME}/${SRCFILE}
20     mirror://${PNAME}/${SRCFILE}
21     )
22    
23     UP2DATE="updatecmd ${HOMEPAGE} | firsttarball xz"
24    
25     src_prepare()
26     {
27     munpack ${SRCFILE} || die
28     cd ${SRCDIR}
29    
30     # set bin/sbin prefix to /usr
31     sed -i "s:^\(PREFIX =\).*:\1 /usr:" Makefile || die
32    
33     # overrride doc dir, we install them manually
34     sed -i "s:^\(DOCDIR =\).*:\1 /usr/share/doc/${PNAME}-${PVER}:" Makefile || die
35     }
36    
37     src_compile()
38     {
39     cd ${SRCDIR}
40     mmake || die
41     }
42    
43     src_install()
44     {
45     cd ${SRCDIR}
46     mmake DESTDIR=${BINDIR} install || die
47    
48     # remove unwanted docs, installing them manully
49     rm -rf ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/dosfstools || die
50     minstalldocs ChangeLog COPYING doc/* || die
51     }