Magellan Linux

Annotation of /smage/branches/alx07x-stable/extras/zip/zip-3.0-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10406 - (hide annotations) (download)
Tue Aug 22 08:05:50 2017 UTC (6 years, 8 months ago) by niro
Original Path: smage/trunk/extras/zip/zip-3.0-r6.smage2
File size: 876 byte(s)
auto added: ver bump to 3.0-r6
1 niro 10406 # $Id$
2    
3     PNAME="zip"
4     PVER="3.0"
5     PBUILD="r6"
6    
7     PCAT="app-arch"
8    
9     DESCRIPTION="ZIP with encryption support."
10     HOMEPAGE="http://www.info-zip.org/"
11    
12     DEPEND=">= virtual/unzip"
13     SDEPEND=">= virtual/sed"
14    
15     SRCFILE="${PNAME}${PVER/./}.tgz"
16     SRCDIR="${BUILDDIR}/${PNAME}${PVER/./}"
17    
18     sminclude mtools
19    
20     SRC_URI=(
21     ftp://ftp.info-zip.org/pub/infozip/src/${SRCFILE}
22     mirror://${PNAME}/${SRCFILE}
23     )
24    
25     UP2DATE="updatecmd ${HOMEPAGE}/Zip.html | grep Zip | sed -n 's/.*p \(.*\) \[.*/\1/;1 p'"
26    
27     src_prepare()
28     {
29     munpack ${SRCFILE} || die
30     cd ${SRCDIR}/unix
31    
32     # force use of our CFLAGS
33     sed -i "s:-O2:${CFLAGS}:" Makefile || die
34     }
35    
36     src_compile()
37     {
38     cd ${SRCDIR}
39     mmake -f unix/Makefile CC="gcc" CPP="gcc -E" generic || die
40     }
41    
42     src_install()
43     {
44     cd ${SRCDIR}
45    
46     minstallexec zip || die
47     minstallexec zipcloak || die
48     minstallexec zipnote || die
49     minstallexec zipsplit || die
50     minstallman man/zip.1 || die
51     }