libv4l: update to 1.22.1
[feed/packages.git] / libs / libpsl / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=libpsl
9 PKG_VERSION:=0.21.1
10 PKG_RELEASE:=3
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://github.com/rockdaboot/libpsl/releases/download/$(PKG_VERSION)
14 PKG_HASH:=ac6ce1e1fbd4d0254c4ddb9d37f1fa99dec83619c1253328155206b896210d4c
15
16 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
17 PKG_LICENSE:=MIT
18 PKG_LICENSE_FILES:=LICENSE
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22 include $(INCLUDE_DIR)/meson.mk
23
24 define Package/libpsl
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=C library to handle the Public Suffix List
28 URL:=https://github.com/rockdaboot/libpsl
29 DEPENDS:=+libidn2 +libunistring $(INTL_DEPENDS)
30 ABI_VERSION:=5
31 endef
32
33 define Package/libpsl/description
34 C library to handle the Public Suffix List
35 endef
36
37 MESON_ARGS += \
38 -Druntime=libidn2 \
39 -Dbuiltin=libidn2
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/libpsl.h $(1)/usr/include/
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpsl.so* $(1)/usr/lib/
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpsl.pc $(1)/usr/lib/pkgconfig/
46 endef
47
48 define Package/libpsl/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpsl.so.* $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,libpsl))