aboutsummaryrefslogtreecommitdiff
path: root/libs/libideviceactivation/Makefile
blob: b73daf5e4ea582a3790fa5c2acfdf9ce58c5ef95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=libideviceactivation
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/libimobiledevice/libideviceactivation.git
PKG_SOURCE_DATE:=2024-04-16
PKG_SOURCE_VERSION:=6925d58ef7994168fb9585aa6f48421149982329
PKG_MIRROR_HASH:=671a4feef00d6cc1b81df1e8f305a2e7a26752848b23c8ab60432940f307fe57

PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING.LESSER
PKG_CPE_ID:=cpe:/a:libimobiledevice:libideviceactivation

PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/libideviceactivation/Default
  TITLE:=Manage the activation of Apple iOS devices
  URL:=https://www.libimobiledevice.org/
  SUBMENU:=libimobiledevice
endef

define Package/libideviceactivation/Default/description
  A library to manage the activation process of Apple iOS devices.
  This project provides an interface to activate and deactivate iOS devices
  by talking to Apple's webservice alongside a command-line utility named
  ideviceactivation.
  - Status: Implements complete activation and deactivation process
  - Compatibility: Supports legacy and latest activation webservice APIs
  - Utility: Provides ideviceactivation utility for command-line usage
  - Interactive: Requests user input if the activation process uses forms
  - Cross-Platform: Tested on Linux, macOS, Windows and Android platforms
endef

define Package/libideviceactivation
  $(call Package/libideviceactivation/Default)
  SECTION:=libs
  CATEGORY:=Libraries
  DEPENDS:=+libcurl +libimobiledevice +usbmuxd
  LICENSE:=LGPL-2.1-or-later
  LICENSE_FILES:=COPYING.LESSER
endef

define Package/libideviceactivation/description
  $(call Package/libideviceactivation/Default/description)
endef

define Package/libideviceactivation-utils
  $(call Package/libideviceactivation/Default)
  SECTION:=utils
  CATEGORY:=Utilities
  DEPENDS:=+libideviceactivation
  LICENSE:=GPL-3.0-or-later
  ICENSE_FILES:=COPYING
endef

define Package/libideviceactivation-utils/description
  $(call Package/libideviceactivation/Default/description)
  This package contains the libideviceactivation utilities.
endef

CONFIGURE_ARGS += \
	PACKAGE_VERSION=$(PKG_VERSION)

define Build/InstallDev
	$(INSTALL_DIR) $(1)/usr/include
	$(CP) $(PKG_INSTALL_DIR)/usr/include/libideviceactivation.h $(1)/usr/include/
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libideviceactivation-1.0.so* $(1)/usr/lib/
	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libideviceactivation-1.0.pc $(1)/usr/lib/pkgconfig/
endef

define Package/libideviceactivation/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libideviceactivation-1.0.so.* $(1)/usr/lib/
endef

define Package/libideviceactivation-utils/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ideviceactivation $(1)/usr/bin/
endef

$(eval $(call BuildPackage,libideviceactivation))
$(eval $(call BuildPackage,libideviceactivation-utils))