blob: b73daf5e4ea582a3790fa5c2acfdf9ce58c5ef95 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=libideviceactivation
9PKG_RELEASE:=1
10
11PKG_SOURCE_PROTO:=git
12PKG_SOURCE_URL:=https://github.com/libimobiledevice/libideviceactivation.git
13PKG_SOURCE_DATE:=2024-04-16
14PKG_SOURCE_VERSION:=6925d58ef7994168fb9585aa6f48421149982329
15PKG_MIRROR_HASH:=671a4feef00d6cc1b81df1e8f305a2e7a26752848b23c8ab60432940f307fe57
16
17PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
18PKG_LICENSE:=LGPL-2.1-or-later
19PKG_LICENSE_FILES:=COPYING.LESSER
20PKG_CPE_ID:=cpe:/a:libimobiledevice:libideviceactivation
21
22PKG_FIXUP:=autoreconf
23PKG_INSTALL:=1
24PKG_BUILD_PARALLEL:=1
25
26include $(INCLUDE_DIR)/package.mk
27
28define Package/libideviceactivation/Default
29 TITLE:=Manage the activation of Apple iOS devices
30 URL:=https://www.libimobiledevice.org/
31 SUBMENU:=libimobiledevice
32endef
33
34define Package/libideviceactivation/Default/description
35 A library to manage the activation process of Apple iOS devices.
36 This project provides an interface to activate and deactivate iOS devices
37 by talking to Apple's webservice alongside a command-line utility named
38 ideviceactivation.
39 - Status: Implements complete activation and deactivation process
40 - Compatibility: Supports legacy and latest activation webservice APIs
41 - Utility: Provides ideviceactivation utility for command-line usage
42 - Interactive: Requests user input if the activation process uses forms
43 - Cross-Platform: Tested on Linux, macOS, Windows and Android platforms
44endef
45
46define Package/libideviceactivation
47 $(call Package/libideviceactivation/Default)
48 SECTION:=libs
49 CATEGORY:=Libraries
50 DEPENDS:=+libcurl +libimobiledevice +usbmuxd
51 LICENSE:=LGPL-2.1-or-later
52 LICENSE_FILES:=COPYING.LESSER
53endef
54
55define Package/libideviceactivation/description
56 $(call Package/libideviceactivation/Default/description)
57endef
58
59define Package/libideviceactivation-utils
60 $(call Package/libideviceactivation/Default)
61 SECTION:=utils
62 CATEGORY:=Utilities
63 DEPENDS:=+libideviceactivation
64 LICENSE:=GPL-3.0-or-later
65 ICENSE_FILES:=COPYING
66endef
67
68define Package/libideviceactivation-utils/description
69 $(call Package/libideviceactivation/Default/description)
70 This package contains the libideviceactivation utilities.
71endef
72
73CONFIGURE_ARGS += \
74 PACKAGE_VERSION=$(PKG_VERSION)
75
76define Build/InstallDev
77 $(INSTALL_DIR) $(1)/usr/include
78 $(CP) $(PKG_INSTALL_DIR)/usr/include/libideviceactivation.h $(1)/usr/include/
79 $(INSTALL_DIR) $(1)/usr/lib
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libideviceactivation-1.0.so* $(1)/usr/lib/
81 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
82 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libideviceactivation-1.0.pc $(1)/usr/lib/pkgconfig/
83endef
84
85define Package/libideviceactivation/install
86 $(INSTALL_DIR) $(1)/usr/lib
87 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libideviceactivation-1.0.so.* $(1)/usr/lib/
88endef
89
90define Package/libideviceactivation-utils/install
91 $(INSTALL_DIR) $(1)/usr/bin
92 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ideviceactivation $(1)/usr/bin/
93endef
94
95$(eval $(call BuildPackage,libideviceactivation))
96$(eval $(call BuildPackage,libideviceactivation-utils))