Contents of /trunk/core/dosfstools/dosfstools-3.0.23-r1.smage2
Parent Directory | Revision Log
Revision 19743 -
(show annotations)
(download)
Thu Oct 17 06:57:03 2013 UTC (10 years, 11 months ago) by niro
File size: 1016 byte(s)
Thu Oct 17 06:57:03 2013 UTC (10 years, 11 months ago) by niro
File size: 1016 byte(s)
auto added: ver bump to 3.0.23-r1
1 | # $Id$ |
2 | |
3 | PNAME="dosfstools" |
4 | PVER="3.0.23" |
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 | } |