Magellan Linux

Contents of /trunk/core/gzip/gzip-1.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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