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.

65 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:=libpsl
  7. PKG_VERSION:=0.20.2
  8. PKG_RELEASE:=3
  9. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  10. PKG_LICENSE:=MIT
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/rockdaboot/libpsl/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
  14. PKG_HASH:=f8fd0aeb66252dfcc638f14d9be1e2362fdaf2ca86bde0444ff4d5cc961b560f
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. define Package/libpsl
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=C library to handle the Public Suffix List
  23. URL:=https://github.com/rockdaboot/libpsl
  24. DEPENDS:=+libidn2 +libunistring $(INTL_DEPENDS)
  25. endef
  26. define Package/libpsl/description
  27. C library to handle the Public Suffix List
  28. endef
  29. CONFIGURE_ARGS += \
  30. --disable-gtk-doc-html \
  31. --disable-man \
  32. --disable-rpath
  33. define Build/InstallDev
  34. $(INSTALL_DIR) \
  35. $(1)/usr/lib \
  36. $(1)/usr/include
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)/usr/include/* \
  39. $(1)/usr/include/
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/lib/* \
  42. $(1)/usr/lib/
  43. endef
  44. define Package/libpsl/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  48. $(1)/usr/lib/
  49. endef
  50. $(eval $(call BuildPackage,libpsl))