# packages/zip/auxbuild
#

# download and unpack tarball
TARVERSION="30"
TARDIR="${BUILD_PACKAGE}${TARVERSION}"
TARBALL="${TARDIR}.tgz"
build_download "ftp://ftp.info-zip.org/pub/infozip/src/${TARBALL}"
build_unpack "${TARBALL}"
PKGDIR="${TARDIR}"

# apply patches matching pattern (repository, patch prefix)
build_patch "${PKGDIR}" "${BUILD_PACKAGE}-ALL-"
build_patch "${PKGDIR}" "${BUILD_PACKAGE}-${TARVERSION}-"

# run make, make install (directory, extra arguments)
(
    cd "Distn/${TARDIR}"
    make -f unix/Makefile generic "CC=${ARCH_CC_PREFIX}gcc"
    make -f unix/Makefile install "prefix=${BUILDROOT}/usr"
)
#build_make "${PKGDIR}"
#build_make "${PKGDIR}" "install"

strip_files

true
# vim: ts=4:sw=4:expandtab:syntax=sh
