From 779cc8ea62b3a3579fcf5fbc929068ecb4ecbf87 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Sun, 15 Jul 2018 00:46:42 -0400 Subject: [PATCH] libpsl: add new package Signed-off-by: W. Michael Petullo --- libs/libpsl/Makefile | 59 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 libs/libpsl/Makefile diff --git a/libs/libpsl/Makefile b/libs/libpsl/Makefile new file mode 100644 index 000000000..8b77de181 --- /dev/null +++ b/libs/libpsl/Makefile @@ -0,0 +1,59 @@ +# +# Copyright (C) 2007-2018 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libpsl +PKG_VERSION:=0.20.2 +PKG_RELEASE:=1 + +PKG_MAINTAINER:=W. Michael Petullo + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/rockdaboot/libpsl/releases/download/$(PKG_NAME)-$(PKG_VERSION)/ +PKG_HASH:=f8fd0aeb66252dfcc638f14d9be1e2362fdaf2ca86bde0444ff4d5cc961b560f + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libpsl + SECTION:=libs + CATEGORY:=Libraries + TITLE:=C library to handle the Public Suffix List + URL:=https://github.com/rockdaboot/libpsl +endef + +define Package/libpsl/description + C library to handle the Public Suffix List +endef + +define Build/InstallDev + $(INSTALL_DIR) \ + $(1)/usr/lib \ + $(1)/usr/include + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/include/* \ + $(1)/usr/include/ + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/* \ + $(1)/usr/lib/ +endef + +define Package/libpsl/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/*.so* \ + $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libpsl))