2 # Copyright (C) 2006-2017 OpenWrt.org
4 # This is free software, licensed under the GPL 2 license.
7 include $(TOPDIR
)/rules.mk
10 PKG_SOURCE_DATE
:=2019-08-15
11 PKG_SOURCE_VERSION
:=9e176fe851006037a643610e6d8f3a8e597d4073
15 PKG_SOURCE_URL
=https
://github.com
/daurnimator
/ldbus
16 PKG_MIRROR_HASH
:=65fc7c975a17cfd3929b54973558205354fc285b6bd88a732c045e8444000d44
18 PKG_MAINTAINER
:=Enrico Mioso
<mrkiko.rs@gmail.com
>
20 PKG_LICENSE_FILES
:=LICENSE
22 PKG_BUILD_DEPENDS
:=luarocks
/host
25 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=ldbus Lua DBus bindings
32 URL
:=https
://github.com
/daurnimator
/ldbus
36 define Package
/ldbus
/description
37 This package contains
"ldbus": LUA bindings to interact with the DBUS
38 message bus system
, and services connected to it.
39 See https
://github.com
/daurnimator
/ldbus
44 cd
$(PKG_BUILD_DIR
) && \
45 luarocks make
--pack-binary-rock ldbus-scm-0.rockspec \
46 LUA_LIBDIR
=$(STAGING_DIR
)/usr
/lib
/lua \
48 DBUS_INCDIR
=$(STAGING_DIR
)/usr
/include/dbus-1.0
/ \
49 DBUS_ARCH_INCDIR
=$(STAGING_DIR
)/usr
/lib
/dbus-1.0
/include \
50 DBUS_LIBDIR
=$(STAGING_DIR
)/usr
/lib \
51 CC
="$(TARGET_CC)" LD
="$(TARGET_CC)" \
52 CFLAGS
="$(TARGET_CFLAGS) $(FPIC)" \
53 LDFLAGS
="$(TARGET_LDFLAGS)"
56 define Package
/ldbus
/install
57 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
58 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ldbus.so
$(1)/usr
/lib
/lua
61 $(eval
$(call BuildPackage
,ldbus
))