This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplan.sh
61 lines (57 loc) · 1.72 KB
/
plan.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
pkg_name=unzip
pkg_origin=core
pkg_version=6.0
pkg_maintainer="The Habitat Maintainers <[email protected]>"
pkg_description="\
UnZip is an extraction utility for archives compressed in .zip format (also \
called 'zipfiles').\
"
pkg_upstream_url="https://sourceforge.net/projects/infozip/"
pkg_license=('Zlib')
pkg_source="https://downloads.sourceforge.net/infozip/unzip60.tar.gz"
pkg_shasum="036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37"
pkg_dirname=unzip60
pkg_deps=(
core/bzip2
core/glibc
)
pkg_build_deps=(
core/gcc
core/make
)
pkg_bin_dirs=(bin)
do_build() {
DEFINES="-DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT \
-DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD \
-DDATE_FORMAT=DF_YMD -DUSE_BZIP2 -DNOMEMCPY -DNO_WORKING_ISPRINT"
make \
-f unix/Makefile \
prefix="${pkg_prefix}" \
D_USE_BZ2=-DUSE_BZIP2 \
L_BZ2=-lbz2 \
LF2="$LDFLAGS" \
CF="$CFLAGS $CPPFLAGS -I. $DEFINES" \
unzips
}
do_install() {
make -f unix/Makefile prefix="${pkg_prefix}" install
}
# ----------------------------------------------------------------------------
# **NOTICE:** What follows are implementation details required for building a
# first-pass, "stage1" toolchain and environment. It is only used when running
# in a "stage1" Studio and can be safely ignored by almost everyone. Having
# said that, it performs a vital bootstrapping process and cannot be removed or
# significantly altered. Thank you!
# ----------------------------------------------------------------------------
if [[ "$STUDIO_TYPE" = "stage1" ]]; then
pkg_build_deps=(
core/gcc
core/pkg-config
core/coreutils
core/sed
core/grep
core/diffutils
core/make
core/patch
)
fi