diff options
author | Sam Bingner <sam@bingner.com> | 2019-06-18 11:38:22 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-06-18 11:38:22 -1000 |
commit | 6a336ff55fd9e31188a04f8ee848309653135219 (patch) | |
tree | 5ccc0cca0eb8b3b3670c8d9b658873ed7ce48c68 /data/unzip/debian/rules | |
parent | 193f32e39e93ea855bda21c551362d9117160ba3 (diff) |
Update unzip to work with new ipsw files
Diffstat (limited to 'data/unzip/debian/rules')
-rwxr-xr-x | data/unzip/debian/rules | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/data/unzip/debian/rules b/data/unzip/debian/rules new file mode 100755 index 000000000..1c4a1f4f0 --- /dev/null +++ b/data/unzip/debian/rules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=-format + +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +CC = $(DEB_HOST_GNU_TYPE)-gcc +CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall +LDFLAGS := `dpkg-buildflags --get LDFLAGS` +CPPFLAGS := `dpkg-buildflags --get CPPFLAGS` +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 -DIZ_HAVE_UXUIDGID -DNOMEMCPY \ + -DNO_WORKING_ISPRINT + +%: + dh $@ + +override_dh_auto_clean: + $(MAKE) -f unix/Makefile clean + +override_dh_auto_build: + $(MAKE) -f unix/Makefile D_USE_BZ2=-DUSE_BZIP2 L_BZ2=-lbz2 \ + CC="$(CC)" LF2="$(LDFLAGS)" \ + CF="$(CFLAGS) $(CPPFLAGS) -I. $(DEFINES)" unzips + +override_dh_auto_install: + $(MAKE) -f unix/Makefile install prefix=`pwd`/debian/tmp/usr + +override_dh_strip: + dh_strip + cd debian/unzip/usr/bin && rm -f zipinfo && ln unzip zipinfo + +override_dh_compress: + dh_compress -XBUGS -XToDo |