Magellan Linux

Annotation of /branches/R11-stable/core/gzip/gzip-1.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17349 - (hide annotations) (download)
Mon Jun 10 11:29:59 2013 UTC (11 years ago) by niro
Original Path: trunk/core/gzip/gzip-1.6-r1.smage2
File size: 865 byte(s)
auto added: ver bump to 1.6-r1
1 niro 17349 # $Id$
2    
3     PNAME="gzip"
4     PVER="1.6"
5     PBUILD="r1"
6    
7     PCAT="app-arch"
8    
9    
10     DESCRIPTION="Standard GNU compressor."
11     HOMEPAGE="http://www.gnu.org/software/gzip/gzip.html"
12    
13     DEPEND=">= virtual/glibc"
14     PROVIDE="virtual/gzip"
15    
16     SRCFILE="${PNAME}-${PVER}.tar.gz"
17     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18    
19     sminclude mbuild mtools
20     msetfeature "!check"
21    
22     SRC_URI=(
23     gnu://${PNAME}/${SRCFILE}
24     mirror://${PNAME}/${SRCFILE}
25     )
26    
27     UP2DATE="updatecmd_gnu ${PNAME} gz"
28    
29     src_prepare()
30     {
31     munpack ${SRCFILE} || die
32     cd ${SRCDIR}
33    
34     # fix compilation with newer glibc (>=2.6.1)
35     sed -i "s/futimens/gl_&/" $(grep -lr futimens *) || die
36     }
37    
38     src_install()
39     {
40     cd ${SRCDIR}
41     make DESTDIR=${BINDIR} install || die
42    
43     # missing: gzcat
44     mlink zcat /usr/bin/gzcat || die
45    
46     # and the docs too
47     minstalldocs \
48     AUTHORS COPYING ChangeLog INSTALL NEWS README \
49     README-alpha THANKS TODO algorithm.doc gzip.doc || die
50     }