Annotation of /branches/R11-stable/core/dosfstools/dosfstools-3.0.24-r1.smage2
Parent Directory | Revision Log
Revision 20110 -
(hide annotations)
(download)
Tue Nov 26 10:18:02 2013 UTC (10 years, 10 months ago) by niro
File size: 1016 byte(s)
Tue Nov 26 10:18:02 2013 UTC (10 years, 10 months ago) by niro
File size: 1016 byte(s)
-release branches/R11-stable
1 | niro | 20078 | # $Id$ |
2 | |||
3 | PNAME="dosfstools" | ||
4 | PVER="3.0.24" | ||
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 | } |