unzip: update to 6.0.

--HG--
extra : convert_revision : a558cc53946073cc793be695fe091abbbcdccda1
This commit is contained in:
Juan RP 2010-04-21 02:22:59 +02:00
parent 4b2bcbbc88
commit d0098a04ef
3 changed files with 27 additions and 49 deletions

View file

@ -1,12 +1,12 @@
# Template file for 'unzip'
pkgname=unzip
version=5.52
distfiles="ftp://ftp.fr.netbsd.org/pub/pkgsrc/distfiles/${pkgname}-${version}/${pkgname}552.tgz"
build_style=gnu_makefile
make_build_target="-f unix/Makefile generic_zlib unzipsfx"
version=6.0
wrksrc=unzip60
distfiles="${SOURCEFORGE_SITE}/infozip/${pkgname}60.tar.gz"
build_style=custom-install
short_desc="List, test and extract compressed files in a ZIP archive"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=145d95e2ef1ef9add2e3c97d1340907e33ab8749eb1235372e7f0b7af600a8e9
checksum=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
long_desc="
Unzip will list, test, or extract files from a ZIP archive, commonly
found on MS-DOS systems. The default behavior (with no options) is to
@ -31,5 +31,25 @@ long_desc="
be extracted, unzipsfx seeks itself under the name by which it was
invoked and tests or extracts the contents of the appended archive."
Add_dependency full glibc
Add_dependency full zlib
CFLAGS="-D_FILE_OFFSET_BITS=64 -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT"
CFLAGS="${CFLAGS} -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE"
CFLAGS="${CFLAGS} -DNO_LCHMOD -DDATE_FORMAT=DF_YMD -DUSE_BZIP2 -DNATIVE"
Add_dependency run glibc
Add_dependency run bzip2
Add_dependency build bzip2-devel
do_build()
{
cd ${wrksrc} && make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" \
prefix=/usr LF2="" D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 \
unzips || return 1
}
do_install()
{
cd ${wrksrc} && make -f unix/Makefile prefix=${DESTDIR}/usr \
INSTALL_PROGRAM="install" install || return 1
mkdir -p ${DESTDIR}/usr/share && \
mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share
}