1 # Template file for 'unzip'
5 distfiles="${SOURCEFORGE_SITE}/infozip/${pkgname}60.tar.gz"
6 build_style=custom-install
7 short_desc="List, test and extract compressed files in a ZIP archive"
8 maintainer="Juan RP <xtraeme@gmail.com>"
9 checksum=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
11 Unzip will list, test, or extract files from a ZIP archive, commonly
12 found on MS-DOS systems. The default behavior (with no options) is to
13 extract into the current directory (and subdirectories below it) all
14 files from the specified ZIP archive. Unzip is compatible with
15 archives created by PKWARE's PKZIP, but in many cases the program
16 options or default behaviors differ.
18 Zipinfo lists technical information about files in a ZIP archive, most
19 commonly found on MS-DOS systems. Such information includes file access
20 permissions, encryption status, type of compression, version and operating
21 system or file system of compressing program, and the like.
23 Funzip acts as a filter; that is, it assumes that a ZIP archive is
24 being piped into standard input, and it extracts the first member from
25 the archive to stdout. If there is an argument, then the input comes
26 from the specified file instead of from stdin.
28 Unzipsfx is a modified version of unzip designed to be prepended to
29 existing ZIP archives in order to form self-extracting archives.
30 Instead of taking its first non-flag argument to be the zipfile(s) to
31 be extracted, unzipsfx seeks itself under the name by which it was
32 invoked and tests or extracts the contents of the appended archive."
34 CFLAGS="-D_FILE_OFFSET_BITS=64 -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT"
35 CFLAGS="${CFLAGS} -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE"
36 CFLAGS="${CFLAGS} -DNO_LCHMOD -DDATE_FORMAT=DF_YMD -DUSE_BZIP2 -DNATIVE"
38 Add_dependency run glibc
39 Add_dependency run bzip2
40 Add_dependency build bzip2-devel
44 cd ${wrksrc} && make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" \
45 prefix=/usr LF2="" D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 \
51 cd ${wrksrc} && make -f unix/Makefile prefix=${DESTDIR}/usr \
52 INSTALL_PROGRAM="install" install || return 1
53 mkdir -p ${DESTDIR}/usr/share && \
54 mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share