Magellan Linux

Contents of /branches/magellan-next/core/dosfstools/dosfstools-3.0.9-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6242 - (show annotations) (download)
Thu Aug 19 21:41:45 2010 UTC (13 years, 8 months ago) by niro
File size: 1092 byte(s)
-fixed SRC_URI
1 # $Id: dosfstools-2.11-r6.smage2 3167 2009-10-13 22:54:48Z niro $
2
3 PNAME="dosfstools"
4 PVER="3.0.9"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-fs"
8 STATE="unstable"
9
10 DESCRIPTION="Tools to handle DOS filesystems."
11 HOMEPAGE="http://www.daniel-baumann.ch/software/dosfstools/"
12
13 DEPEND=">= virtual/glibc"
14 SDEPEND=">= sys-apps/sed-4"
15
16 SRCFILE="${PNAME}-${PVER}.tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 SRC_URI=(
20 http://www.daniel-baumann.ch/software/${PNAME}/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 )
23
24 UP2DATE="updatecmd ${HOMEPAGE} | lasttarball"
25
26 src_prepare()
27 {
28 munpack ${SRCFILE} || die
29 cd ${SRCDIR}
30
31 # set bin/sbin prefix to /usr
32 sed -i "s:^\(PREFIX =\).*:\1 /usr:" Makefile || die
33
34 # overrride doc dir, we install them manually
35 sed -i "s:^\(DOCDIR =\).*:\1 /usr/share/doc/${PNAME}-${PVER}:" Makefile || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41 mmake || die
42 }
43
44 src_install()
45 {
46 cd ${SRCDIR}
47
48 mmake DESTDIR=${BINDIR} install || die
49
50 # remove unwanted docs, installing them manully
51 rm -rf ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/dosfstools || die
52 minstalldocs ChangeLog COPYING doc/* || die
53 }