From 66c3209a868674cc112fcfad37b1cd6a2b1ed383 Mon Sep 17 00:00:00 2001 From: Lukas Voegl Date: Mon, 1 Jul 2024 11:37:00 +0200 Subject: [PATCH] libgudev: add package Signed-off-by: Lukas Voegl --- libs/libgudev/Makefile | 63 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 libs/libgudev/Makefile diff --git a/libs/libgudev/Makefile b/libs/libgudev/Makefile new file mode 100644 index 00000000000000..a17e9b8fda6196 --- /dev/null +++ b/libs/libgudev/Makefile @@ -0,0 +1,63 @@ +# +# Copyright (C) 2024 TDT AG +# +# This is free software, licensed under the GNU General Public License v2. +# See https://www.gnu.org/licenses/gpl-2.0.txt for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libgudev +PKG_VERSION:=238 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=@GNOME/libgudev/$(basename $(PKG_VERSION)) +PKG_HASH:=61266ab1afc9d73dbc60a8b2af73e99d2fdff47d99544d085760e4fa667b5dd1 + +PKG_MAINTAINER:=Lukas Voegl +PKG_LICENSE:=LGPL-2.1-or-later +PKG_LICENSE_FILES:=COPYING + +PKG_BUILD_DEPENDS:=glib2/host +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk +include $(INCLUDE_DIR)/meson.mk + +define Package/libgudev + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:= \ + $(INTL_DEPENDS) \ + +glib2 \ + +libudev + TITLE:=GObject-based wrapper library for libudev + URL:=https://wiki.gnome.org/Projects/libgudev +endef + +MESON_ARGS+= \ + -Db_lto=true \ + -Dtests=disabled \ + -Dintrospection=disabled \ + -Dvapi=disabled \ + -Dgtk_doc=false + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gudev-1.0/gudev + $(CP) $(PKG_INSTALL_DIR)/usr/include/gudev-1.0/gudev/*.h $(1)/usr/include/gudev-1.0/gudev + + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgudev-1.0.so* $(1)/usr/lib + + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gudev-1.0.pc $(1)/usr/lib/pkgconfig +endef + +define Package/libgudev/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgudev-1.0.so* $(1)/usr/lib +endef + +$(eval $(call BuildPackage,libgudev))