aboutsummaryrefslogtreecommitdiff
path: root/libs/libpsl
diff options
context:
space:
mode:
authorW. Michael Petullo <mike@flyn.org>2018-07-15 00:46:42 -0400
committerW. Michael Petullo <mike@flyn.org>2018-07-15 00:46:42 -0400
commit779cc8ea62b3a3579fcf5fbc929068ecb4ecbf87 (patch)
treee8a0e0b95f9d846b86bbfb141e9b51c4deb78dde /libs/libpsl
parent3fdef4e2f309aeec69686e02a29f1f8cb1b4618b (diff)
libpsl: add new package
Signed-off-by: W. Michael Petullo <mike@flyn.org>
Diffstat (limited to 'libs/libpsl')
-rw-r--r--libs/libpsl/Makefile59
1 files changed, 59 insertions, 0 deletions
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 <mike@flyn.org>
+
+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))