CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
f8d434f58760f9c7df3047ad134553b9503cb6fa
[crossrootfs.git] / zip / Pkgfile
1 # Description: Compression and file packaging/archive utility
2 # URL: http://infozip.sourceforge.net/Zip.html
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on:
6
7 name=zip
8 version=3.0
9 release=1
10 source=(http://dl.sourceforge.net/sourceforge/infozip/${name}${version//./}.tar.gz)
11
12 build() {
13 cd ${name}${version//./}
14 sed -e "s|gcc |$CC |g" \
15 -e "s|AS=.*|AS=$CC|g" \
16 -e "s|LD=.*|LD=$CC|g" \
17 -i unix/Makefile
18
19 make -f unix/Makefile CC="$CC" LOCAL_ZIP="$CFLAGS" prefix=/usr generic
20 make -f unix/Makefile INSTALL=install prefix=$PKG/usr install
21 }