From 6f985930779f665ef89db019e9adbf8e7e4bb998 Mon Sep 17 00:00:00 2001 From: Georgi Valkov Date: Sat, 9 Nov 2024 13:54:34 +0200 Subject: [PATCH] libtatsu: add package 1.0.4 required by new versions of libimobiledevice and idevicerestore depends on libcurl Signed-off-by: Georgi Valkov --- libs/libtatsu/Makefile | 71 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 libs/libtatsu/Makefile diff --git a/libs/libtatsu/Makefile b/libs/libtatsu/Makefile new file mode 100644 index 0000000000..d44d73fa5a --- /dev/null +++ b/libs/libtatsu/Makefile @@ -0,0 +1,71 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libtatsu +PKG_VERSION:=1.0.4 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=https://github.com/libimobiledevice/libtatsu/releases/download/$(PKG_VERSION) +PKG_HASH:=08094e58364858360e1743648581d9bad055ba3b06e398c660e481ebe0ae20b3 + +PKG_MAINTAINER:=Georgi Valkov +PKG_LICENSE:=LGPL-2.1-or-later +PKG_LICENSE_FILES:=COPYING + +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libtatsu/Default + TITLE:=Handle communication with Apple's Tatsu Signing Server (TSS) + URL:=https://www.libimobiledevice.org/ + SUBMENU:=libimobiledevice +endef + +define Package/libtatsu/Default/description + libtatsu is part of the libimobiledevice project. + The main purpose is to allow creating TSS request payloads, + sending them to Apple's TSS server, and retrieving and processing the + response. The code was originally part of idevicerestore and has been split + out to its own library, while obviously idevicerestore will remain the main + consumer. +endef + +define Package/libtatsu + $(call Package/libtatsu/Default) + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+libcurl +libplist + LICENSE:=LGPL-2.1-or-later + LICENSE_FILES:=COPYING +endef + +define Package/libtatsu/description + $(call Package/libtatsu/Default/description) +endef + +CONFIGURE_ARGS += \ + --disable-static \ + --without-cython + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/libtatsu $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtatsu.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtatsu-1.0.pc $(1)/usr/lib/pkgconfig/ +endef + +define Package/libtatsu/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtatsu.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libtatsu)) -- 2.30.2