You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.4 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=idevicerestore
  7. PKG_SOURCE_DATE:=2020-04-20
  8. PKG_SOURCE_VERSION:=d1cb6bfef6ac8fb08472ac5f1fac93895084371c
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL=https://github.com/libimobiledevice/idevicerestore
  12. PKG_MIRROR_HASH:=1f0afb92a1a32b7ac929408c1dd5356329866a2672075d0f55dde7d31dac6cc2
  13. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/idevicerestore
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. SUBMENU:=libimobiledevice
  24. TITLE:=Restore/upgrade firmware of iOS devices
  25. URL:=https://github.com/libimobiledevice/idevicerestore
  26. DEPENDS:=+libirecovery +libzip +libcurl +usbmuxd
  27. endef
  28. define Package/idevicerestore/description
  29. The idevicerestore tool allows to restore firmware files to iOS devices.
  30. It is a full reimplementation of all granular steps which are performed
  31. during restore of a firmware to a device.
  32. endef
  33. TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lpthread)
  34. define Package/idevicerestore/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(CP) $(PKG_INSTALL_DIR)/usr/bin/idevicerestore $(1)/usr/bin/
  37. endef
  38. $(eval $(call BuildPackage,idevicerestore))