2008-10-04 04:29:49 +00:00
|
|
|
# Template file for 'unzip'
|
|
|
|
pkgname=unzip
|
2010-04-21 00:22:59 +00:00
|
|
|
version=6.0
|
2013-03-20 11:05:32 +00:00
|
|
|
homepage="http://infozip.sf.net/"
|
|
|
|
license="BSD"
|
2013-03-27 11:58:49 +00:00
|
|
|
makedepends="bzip2-devel"
|
2010-04-21 00:22:59 +00:00
|
|
|
wrksrc=unzip60
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/infozip/${pkgname}60.tar.gz"
|
2013-03-27 11:58:49 +00:00
|
|
|
revision=2
|
2008-10-02 22:44:43 +00:00
|
|
|
short_desc="List, test and extract compressed files in a ZIP archive"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-04-21 00:22:59 +00:00
|
|
|
checksum=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
|
2008-10-30 22:05:58 +00:00
|
|
|
|
2010-04-21 00:22:59 +00:00
|
|
|
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"
|
|
|
|
|
|
|
|
do_build()
|
|
|
|
{
|
2013-03-27 11:58:49 +00:00
|
|
|
cd ${wrksrc} && make ${makejobs} -f unix/Makefile LOCAL_UNZIP="$CFLAGS" \
|
|
|
|
prefix=/usr LF2="" CC=$CC D_USE_BZ2=-DUSE_BZIP2 \
|
|
|
|
L_BZ2=-lbz2 unzips || return 1
|
2010-04-21 00:22:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2013-03-27 11:58:49 +00:00
|
|
|
cd ${wrksrc} && make ${makejobs} -f unix/Makefile prefix=${DESTDIR}/usr \
|
|
|
|
LN='ln -fs' INSTALL_PROGRAM="install" install || return 1
|
2010-04-21 00:22:59 +00:00
|
|
|
mkdir -p ${DESTDIR}/usr/share && \
|
|
|
|
mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share
|
|
|
|
}
|