Skip to content

Commit

Permalink
libgudev: add package
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Voegl <[email protected]>
  • Loading branch information
lvoegl committed Sep 16, 2024
1 parent aa94eb4 commit 14584fc
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions libs/libgudev/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#
# Copyright (C) 2024 TDT AG <[email protected]>
#
# 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 <[email protected]>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING

PKG_BUILD_DEPENDS:=glib2/host

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
include $(INCLUDE_DIR)/meson.mk

define Package/libgudev
SECTION:=libs
CATEGORY:=Libraries
TITLE:=libgudev
URL:=https://gitlab.gnome.org/GNOME/libgudev
DEPENDS:= \
+glib2 \
+libudev
endef

define Package/libgusb/description
libgudev is a GObject-based wrapper library providing bindings for libudev.
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))

0 comments on commit 14584fc

Please sign in to comment.