### this file is sourced not run
PKGVER=6.0
PKGBUILD=1
PKGARCH=x86_64

# BLFS 7.5
TARBALL=unzip60.tar.gz
MD5SUM=62b490407489521db863b523a7f86375 
SRC_URL=http://downloads.sourceforge.net/infozip/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC='unzip: unzip 6.0 (ZIP extractor)  
unzip:  
unzip: The UnZip package contains ZIP extraction utilities. These are useful 
unzip: for extracting files from ZIP archives. ZIP archives are created with 
unzip: PKZIP or Info-ZIP utilities, primarily in a DOS/Windows environment.  
unzip: 
unzip: 
unzip: 
unzip: 
unzip: 
unzip: 
'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/unzip*
	
	case `uname -m` in
	  i?86)
		sed -i -e 's/DASM"/DASM -DNO_LCHMOD"/' unix/Makefile
		make -f unix/Makefile linux
		;;
	  *)
		sed -i -e 's/CFLAGS="-O -Wall/& -DNO_LCHMOD/' unix/Makefile
		make -f unix/Makefile linux_noasm
		;;
	esac &&
	make prefix=/usr install &&
	pkg_build_slackdesc
}


