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.

59 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2007-2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libpsl
  9. PKG_VERSION:=0.20.2
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. PKG_SOURCE_URL:=https://github.com/rockdaboot/libpsl/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
  16. PKG_HASH:=f8fd0aeb66252dfcc638f14d9be1e2362fdaf2ca86bde0444ff4d5cc961b560f
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.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. endef
  25. define Package/libpsl/description
  26. C library to handle the Public Suffix List
  27. endef
  28. define Build/InstallDev
  29. $(INSTALL_DIR) \
  30. $(1)/usr/lib \
  31. $(1)/usr/include
  32. $(CP) \
  33. $(PKG_INSTALL_DIR)/usr/include/* \
  34. $(1)/usr/include/
  35. $(CP) \
  36. $(PKG_INSTALL_DIR)/usr/lib/* \
  37. $(1)/usr/lib/
  38. endef
  39. define Package/libpsl/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  43. $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libpsl))