treewide: fix incorrect hashes
[feed/packages.git] / libs / json-glib / Makefile
1 #
2 # Copyright (C) 2020 Sebastian Kemper <sebastian_ml@gmx.net>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=json-glib
11 PKG_VERSION:=1.8.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@GNOME/json-glib/$(basename $(PKG_VERSION))
16 PKG_HASH:=97ef5eb92ca811039ad50a65f06633f1aae64792789307be7170795d8b319454
17
18 PKG_LICENSE:=LGPL-2.1-or-later
19 PKG_LICENSE_FILES:=COPYING
20 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
21
22 PKG_BUILD_DEPENDS:=glib2/host
23
24 OPENWRT_VERBOSE:=c
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/nls.mk
28 include $(INCLUDE_DIR)/meson.mk
29
30 define Package/json-glib
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=JSON GLib Library
34 URL:=https://wiki.gnome.org/Projects/JsonGlib
35 DEPENDS:=+glib2
36 ABI_VERSION:=0
37 endef
38
39 define Package/json-glib/description
40 JSON-GLib is a library providing serialization and deserialization
41 support for the JavaScript Object Notation (JSON) format described by
42 RFC 4627.
43 endef
44
45 MESON_ARGS += \
46 -Dgtk_doc=disabled \
47 -Dintrospection=disabled \
48 -Dtests=false
49
50 define Build/Prepare
51 $(call Build/Prepare/Default)
52 ifeq ($(QUILT),)
53 $(SED) '/error=format=2/d' $(PKG_BUILD_DIR)/meson.build
54 endif
55 endef
56
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/include/json-glib-1.0/json-glib
59 $(INSTALL_DATA) \
60 $(PKG_INSTALL_DIR)/usr/include/json-glib-1.0/json-glib/*.h \
61 $(1)/usr/include/json-glib-1.0/json-glib
62
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-glib-1.0.so* \
65 $(1)/usr/lib
66
67 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json-glib-1.0.pc \
69 $(1)/usr/lib/pkgconfig
70 endef
71
72 define Package/json-glib/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-glib-1.0.so.$(ABI_VERSION)* \
75 $(1)/usr/lib
76 endef
77
78 $(eval $(call BuildPackage,json-glib))