Skip to content

Commit 0a460e4

Browse files
committed
ipatool: There's no need for a patch file...
Signed-off-by: TheRealKeto <[email protected]>
1 parent 946578a commit 0a460e4

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

build_patch/ipatool/version.diff

Lines changed: 0 additions & 19 deletions
This file was deleted.

makefiles/ipatool.mk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,18 @@ DEB_IPATOOL_V ?= $(IPATOOL_VERSION)
1111
ipatool-setup: setup
1212
$(call GITHUB_ARCHIVE,majd,ipatool,$(IPATOOL_VERSION),v$(IPATOOL_VERSION))
1313
$(call EXTRACT_TAR,ipatool-$(IPATOOL_VERSION).tar.gz,ipatool-$(IPATOOL_VERSION),ipatool)
14-
$(call DO_PATCH,ipatool,ipatool,-p1)
15-
mkdir -p $(BUILD_STAGE)/ipatool/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin
1614

1715
ifneq ($(wildcard $(BUILD_WORK)/ipatool/.build_complete),)
1816
ipatool:
1917
@echo "Using previously built ipatool."
2018
else
2119
ipatool: ipatool-setup
22-
sed -e "s|@DEB_IPATOOL_V@|$(DEB_IPATOOL_V)|g" -i $(BUILD_WORK)/ipatool/tools/version.sh
20+
sed -e '3s|.*|VERSION="$(DEB_IPATOOL_V)"|' -i $(BUILD_WORK)/ipatool/tools/version.sh
2321
cd $(BUILD_WORK)/ipatool && ./tools/version.sh
2422
cd $(BUILD_WORK)/ipatool && $(DEFAULT_GOLANG_FLAGS) go build \
2523
-trimpath \
2624
-o $(BUILD_WORK)/ipatool/ipatool
27-
$(INSTALL) -Dm755 $(BUILD_WORK)/ipatool/ipatool $(BUILD_STAGE)/ipatool/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin/
25+
$(INSTALL) -Dm755 $(BUILD_WORK)/ipatool/ipatool -t $(BUILD_STAGE)/ipatool/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin/
2826
$(call AFTER_BUILD)
2927
endif
3028

0 commit comments

Comments
 (0)