Mercurial > vanilla
comparison compression/zip/zip.sh @ 451:bcfdaa03daa2
compression/zip: initial import, closes #1552
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 06 Apr 2019 08:06:30 +0200 |
parents | |
children | 1aa1ea59be9b |
comparison
equal
deleted
inserted
replaced
450:045ae65dec6e | 451:bcfdaa03daa2 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
4 # | |
5 # Permission to use, copy, modify, and/or distribute this software for any | |
6 # purpose with or without fee is hereby granted, provided that the above | |
7 # copyright notice and this permission notice appear in all copies. | |
8 # | |
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
16 # | |
17 | |
18 PKGNAME=zip | |
19 PKGVERSION=3.0 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="CUSTOM" | |
22 PKGSUMMARY="utility to compress and archive zip files" | |
23 PKGDOWNLOAD="https://downloads.sourceforge.net/infozip/${PKGNAME}30.tar.gz" | |
24 PKGDEPENDS="core/bzip2" | |
25 | |
26 : ${CC:=clang} | |
27 | |
28 build() | |
29 { | |
30 rm -rf ${PKGNAME}30 | |
31 tar xvaf ${PKGNAME}30.tar.gz | |
32 pushd ${PKGNAME}30 | |
33 | |
34 # does not support DESTDIR, fake it with prefix. | |
35 make -f unix/Makefile CC="$CC" generic | |
36 make -f unix/Makefile \ | |
37 prefix=$DESTDIR/usr \ | |
38 MANDIR=$DESTDIR/usr/share/man/man1 \ | |
39 install | |
40 | |
41 popd | |
42 rm -rf ${PKGNAME}30 | |
43 } |