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 Aug 27, 2024
1 parent 4b6ee0d commit dde6480
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions libs/libgudev/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#
# 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
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
TITLE:=GObject-based wrapper library for libudev
URL:=https://wiki.gnome.org/Projects/libgudev
DEPENDS:= \
$(INTL_DEPENDS) \
+glib2 \
+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 dde6480

Please sign in to comment.