# Compiling Time: 0.02 SBU
# Maintainer: Miklos Vajna <vmiklos@frugalware.org>

pkgname=zip
pkgver=3.0
pkgrel=4
pkgdesc="Info-ZIP's zip utility"
_F_sourceforge_dirname="infozip"
_F_sourceforge_sep="None"
_F_sourceforge_pkgver="${pkgver/./}"
_F_sourceforge_ext=".zip"
Finclude sourceforge
url="http://www.info-zip.org/Zip.html"
depends=('glibc>=2.22-7' 'bzip2>=1.0.6-4')
groups=('apps')
archs=('i686' 'x86_64' 'arm')
up2date="lynx -dump http://www.info-zip.org/Zip.html|grep Zip|sed -n 's/.*p \(.*\) \[.*/\1/;1 p'"
sha1sums=('4f244128ee8fa3fc07eedfee3d4ac634dcabd492')

build()
{
	Fcd $pkgname$_F_sourceforge_pkgver
	Fsed '$(INSTALL)' '$(INSTALL_PROGRAM)' unix/Makefile
	make -f unix/Makefile LOCAL_ZIP="$CFLAGS" prefix=/usr generic_gcc || Fdie
	make -f unix/Makefile INSTALL_PROGRAM=install prefix=$Fdestdir/usr install || Fdie
}

# optimization OK
