Contents of /smage/trunk/extras/unzip/unzip-6.0-r4.smage2
Parent Directory | Revision Log
Revision 10294 -
(show annotations)
(download)
Thu Aug 17 12:36:24 2017 UTC (7 years, 1 month ago) by niro
File size: 1451 byte(s)
Thu Aug 17 12:36:24 2017 UTC (7 years, 1 month ago) by niro
File size: 1451 byte(s)
auto added: ver bump to 6.0-r4
1 | # $Id$ |
2 | |
3 | PNAME="unzip" |
4 | PVER="6.0" |
5 | PBUILD="r4" |
6 | |
7 | PCAT="app-arch" |
8 | |
9 | DESCRIPTION="Unzipper for pkzip-compressed files." |
10 | HOMEPAGE="http://www.info-zip.org/UnZip.html" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDPEND=">= virtual/sed" |
14 | |
15 | SRCFILE="${PNAME}${PVER/.}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}${PVER/./}" |
17 | |
18 | ALX_PKG_KEEP="usr/bin/unzip" |
19 | sminclude mtools alx-split |
20 | |
21 | SRC_URI=( |
22 | sourceforge://infozip/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${PNAME}-5.52-fix_Makefile.patch |
25 | mirror://${PNAME}/${PNAME}-5.52-fix_libz.patch |
26 | ) |
27 | |
28 | UP2DATE="updatecmd_sourceforge infozip ${PNAME}" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # fix a missing symlink |
36 | mpatch ${PNAME}-5.52-fix_Makefile.patch || die |
37 | |
38 | # fix compile against zlib |
39 | mpatch ${PNAME}-5.52-fix_libz.patch || die |
40 | |
41 | # force use of our CFLAGS |
42 | sed -i -e "s:-O3:${CFLAGS}:" \ |
43 | -e "s:CC=gcc LD=gcc:CC=${CC:-gcc} LD=${CC:-gcc}:" \ |
44 | -e "s:-O :${CFLAGS} :" unix/Makefile \ |
45 | || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | |
52 | # disable asm on all arches but x86 |
53 | local my_opts=linux_noasm |
54 | [[ ${ARCH} = i*86 ]] && my_opts=linux |
55 | |
56 | mmake -f unix/Makefile ${my_opts} || die |
57 | } |
58 | |
59 | alx_generic_src_install() |
60 | { |
61 | cd ${SRCDIR} |
62 | |
63 | # bins |
64 | minstallexec unzip || die |
65 | minstallexec funzip || die |
66 | minstallexec unzipsfx || die |
67 | minstallexec unix/zipgrep || die |
68 | |
69 | mlink unzip /usr/bin/zipinfo || die |
70 | |
71 | # man |
72 | minstallman man/*.1 || die |
73 | |
74 | # docs |
75 | minstalldocs BUGS COPYING.OLD History* LICENSE README ToDo WHERE || die |
76 | } |