Magellan Linux

Annotation of /branches/R11-stable/core/squashfs-tools/squashfs-tools-4.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10235 - (hide annotations) (download)
Fri Jan 20 10:37:49 2012 UTC (12 years, 4 months ago) by niro
Original Path: trunk/core/squashfs-tools/squashfs-tools-4.2-r1.smage2
File size: 905 byte(s)
-import from magellan-next
1 niro 9445 # $Id$
2    
3     PNAME="squashfs-tools"
4     PVER="4.2"
5     PBUILD="r1"
6    
7 niro 10235 PCAT="sys-fs"
8 niro 9445
9     DESCRIPTION="Tools to handle squashfs filesystems."
10     HOMEPAGE="http://squashfs.sourceforge.net/"
11    
12     DEPEND=">= virtual/glibc
13     >= sys-libs/zlib-1"
14    
15     SDEPEND=">= sys-apps/sed-4"
16    
17     SRCFILE="${PNAME/-tools/}${PVER/p/-r}.tar.gz"
18     SRCDIR="${BUILDDIR}/${PNAME/-tools/}${PVER/p/-r}"
19    
20     sminclude mtools
21    
22     SRC_URI=(
23     sourceforge://squashfs/${SRCFILE}
24     mirror://${PNAME}/${SRCFILE}
25     )
26    
27     UP2DATE="updatecmd_sourceforge ${PNAME/-tools/} | sed 's/${PNAME/-tools/}//'"
28    
29     src_prepare()
30     {
31     munpack ${SRCFILE} || die
32     cd ${SRCDIR}/squashfs-tools
33    
34     # force use of our CFLAGS
35     sed -i "s:-O2:${CFLAGS}:" Makefile || die
36     }
37    
38     src_compile()
39     {
40     cd ${SRCDIR}/squashfs-tools
41     mmake || die
42     }
43    
44     src_install()
45     {
46     cd ${SRCDIR}
47    
48     minstallexec squashfs-tools/mksquashfs || die
49     minstallexec squashfs-tools/unsquashfs || die
50    
51     minstalldocs ACKNOWLEDGEMENTS README* CHANGES || die
52     }