diff --git a/build_info/ipatool.control b/build_info/ipatool.control new file mode 100644 index 0000000000..8534c1ba9a --- /dev/null +++ b/build_info/ipatool.control @@ -0,0 +1,12 @@ +Package: ipatool +Version: @DEB_IPATOOL_V@ +Architecture: @DEB_ARCH@ +Maintainer: @DEB_MAINTAINER@ +Author: Majd Alfhaily +Section: Utilities +Priority: optional +Homepage: https://github.com/majd/ipatool +Description: Command-line tool to navigate the App Store. + ipatool is a command line tool that allows you to search for + iOS apps on the App Store and download a copy of the package, + known as an ipa file. diff --git a/makefiles/ipatool.mk b/makefiles/ipatool.mk new file mode 100644 index 0000000000..d88cdc453d --- /dev/null +++ b/makefiles/ipatool.mk @@ -0,0 +1,46 @@ +ifneq ($(PROCURSUS),1) +$(error Use the main Makefile) +endif + +ifneq (,$(findstring darwin,$(MEMO_TARGET))) + +SUBPROJECTS += ipatool +IPATOOL_VERSION := 2.1.4 +DEB_IPATOOL_V ?= $(IPATOOL_VERSION) + +ipatool-setup: setup + $(call GITHUB_ARCHIVE,majd,ipatool,$(IPATOOL_VERSION),v$(IPATOOL_VERSION)) + $(call EXTRACT_TAR,ipatool-$(IPATOOL_VERSION).tar.gz,ipatool-$(IPATOOL_VERSION),ipatool) + +ifneq ($(wildcard $(BUILD_WORK)/ipatool/.build_complete),) +ipatool: + @echo "Using previously built ipatool." +else +ipatool: ipatool-setup + cd $(BUILD_WORK)/ipatool && $(DEFAULT_GOLANG_FLAGS) go build \ + -trimpath \ + -ldflags "-X github.com/majd/ipatool/v2/cmd.version=$(IPATOOL_VERSION)" \ + -o $(BUILD_WORK)/ipatool/ipatool + $(INSTALL) -Dm755 $(BUILD_WORK)/ipatool/ipatool -t $(BUILD_STAGE)/ipatool/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin/ + $(call AFTER_BUILD) +endif + +ipatool-package: ipatool-stage + # ipatool.mk Package Structure + rm -rf $(BUILD_DIST)/ipatool + + # ipatool.mk Prep ipatool + cp -a $(BUILD_STAGE)/ipatool $(BUILD_DIST) + + # ipatool.mk Sign + $(call SIGN,ipatool,general.xml) + + # ipatool.mk Make .debs + $(call PACK,ipatool,DEB_IPATOOL_V) + + # ipatool.mk Build cleanup + rm -rf $(BUILD_DIST)/ipatool + +.PHONY: ipatool ipatool-package + +endif