Skip to content

Commit 2633cc8

Browse files
committed
Add ipatool
1 parent b66b610 commit 2633cc8

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

build_info/ipatool.control

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Package: ipatool
2+
Version: @DEB_IPATOOL_V@
3+
Architecture: @DEB_ARCH@
4+
Maintainer: @DEB_MAINTAINER@
5+
Author: Majd Alfhaily <[email protected]>
6+
Section: Utilities
7+
Priority: optional
8+
Homepage: https://github.com/majd/ipatool
9+
Description: Command-line tool to navigate the App Store.
10+
ipatool is a command line tool that allows you to search for
11+
iOS apps on the App Store and download a copy of the package,
12+
known as an ipa file.

makefiles/ipatool.mk

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
ifneq ($(PROCURSUS),1)
2+
$(error Use the main Makefile)
3+
endif
4+
5+
ifneq (,$(findstring darwin,$(MEMO_TARGET)))
6+
7+
SUBPROJECTS += ipatool
8+
IPATOOL_VERSION := 2.0.0
9+
DEB_IPATOOL_V ?= $(IPATOOL_VERSION)
10+
11+
ipatool-setup: setup
12+
$(call GITHUB_ARCHIVE,majd,ipatool,$(IPATOOL_VERSION),v$(IPATOOL_VERSION))
13+
$(call EXTRACT_TAR,ipatool-$(IPATOOL_VERSION).tar.gz,ipatool-$(IPATOOL_VERSION),ipatool)
14+
15+
ifneq ($(wildcard $(BUILD_WORK)/ipatool/.build_complete),)
16+
ipatool:
17+
@echo "Using previously built ipatool."
18+
else
19+
ipatool: ipatool-setup
20+
sed -e '3s|.*|VERSION="$(DEB_IPATOOL_V)"|' -i $(BUILD_WORK)/ipatool/tools/version.sh
21+
cd $(BUILD_WORK)/ipatool && ./tools/version.sh
22+
cd $(BUILD_WORK)/ipatool && $(DEFAULT_GOLANG_FLAGS) go build \
23+
-trimpath \
24+
-o $(BUILD_WORK)/ipatool/ipatool
25+
$(INSTALL) -Dm755 $(BUILD_WORK)/ipatool/ipatool -t $(BUILD_STAGE)/ipatool/$(MEMO_PREFIX)$(MEMO_SUB_PREFIX)/bin/
26+
$(call AFTER_BUILD)
27+
endif
28+
29+
ipatool-package: ipatool-stage
30+
# ipatool.mk Package Structure
31+
rm -rf $(BUILD_DIST)/ipatool
32+
33+
# ipatool.mk Prep ipatool
34+
cp -a $(BUILD_STAGE)/ipatool $(BUILD_DIST)
35+
36+
# ipatool.mk Sign
37+
$(call SIGN,ipatool,general.xml)
38+
39+
# ipatool.mk Make .debs
40+
$(call PACK,ipatool,DEB_IPATOOL_V)
41+
42+
# ipatool.mk Build cleanup
43+
rm -rf $(BUILD_DIST)/ipatool
44+
45+
.PHONY: ipatool ipatool-package
46+
47+
endif

0 commit comments

Comments
 (0)