summaryrefslogtreecommitdiffstats
path: root/base/unzip/Pkgfile
blob: 0a61a9571d84d663b441ba3cf7c59ea739a1afb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Description: Utilitaire de décompression de fichiers zip
# URL: http://www.info-zip.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=unzip
version=6.0
release=1
source=(http://downloads.sourceforge.net/infozip/unzip60.tar.gz)


build() {
	cd $name${version/./}
	case `uname -m` in
		x86_64)
			make -f unix/Makefile LOCAL_UNZIP=-D FILE_OFFSET_64BITS=64 \
			CF="-0 -Wall -I. -DUSE_UNSHRINK" prefix=/usr unzips;;
		i?86)
			make -f unix/Makefile \
			LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux;;
	esac
	make -f unix/Makefile prefix=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install
}