Mercurial > vanilla
changeset 451:bcfdaa03daa2
compression/zip: initial import, closes #1552
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 06 Apr 2019 08:06:30 +0200 |
parents | 045ae65dec6e |
children | 8c4366128400 |
files | compression/zip/zip.sh |
diffstat | 1 files changed, 43 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compression/zip/zip.sh Sat Apr 06 08:06:30 2019 +0200 @@ -0,0 +1,43 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier <markand@malikania.fr> +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +PKGNAME=zip +PKGVERSION=3.0 +PKGREVISION=1 +PKGLICENSE="CUSTOM" +PKGSUMMARY="utility to compress and archive zip files" +PKGDOWNLOAD="https://downloads.sourceforge.net/infozip/${PKGNAME}30.tar.gz" +PKGDEPENDS="core/bzip2" + +: ${CC:=clang} + +build() +{ + rm -rf ${PKGNAME}30 + tar xvaf ${PKGNAME}30.tar.gz + pushd ${PKGNAME}30 + + # does not support DESTDIR, fake it with prefix. + make -f unix/Makefile CC="$CC" generic + make -f unix/Makefile \ + prefix=$DESTDIR/usr \ + MANDIR=$DESTDIR/usr/share/man/man1 \ + install + + popd + rm -rf ${PKGNAME}30 +}