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.

47 lines
1.3 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_VERSION:=1.0.0
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  10. PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
  11. PKG_HASH:=32712e86315397fd2e8999e77a2d2f790c67f6b4aa50d4d1c64cb2c4609836f7
  12. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  13. PKG_LICENSE:=GPL-2.0-or-later
  14. PKG_LICENSE_FILES:=COPYING
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/idevicerestore
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. SUBMENU:=libimobiledevice
  22. TITLE:=Restore/upgrade firmware of iOS devices
  23. URL:=https://github.com/libimobiledevice/idevicerestore
  24. DEPENDS:=+libirecovery +libzip +libcurl +usbmuxd
  25. endef
  26. define Package/idevicerestore/description
  27. The idevicerestore tool allows to restore firmware files to iOS devices.
  28. It is a full reimplementation of all granular steps which are performed
  29. during restore of a firmware to a device.
  30. endef
  31. TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lpthread)
  32. define Package/idevicerestore/install
  33. $(INSTALL_DIR) $(1)/usr/bin
  34. $(CP) $(PKG_INSTALL_DIR)/usr/bin/idevicerestore $(1)/usr/bin/
  35. endef
  36. $(eval $(call BuildPackage,idevicerestore))