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-03-25
11 PKG_SOURCE_VERSION
:=345d820b0f34bd35ea01dae633d35ea3cf7faf2a
15 PKG_SOURCE_URL
=https
://github.com
/daurnimator
/ldbus
16 PKG_MIRROR_HASH
:=c0f5d1b34bc8b82d0f70bad23ecaca10ef84730c2c3ea318673b5a941f4dfc85
18 PKG_MAINTAINER
:=Enrico Mioso
<mrkiko.rs@gmail.com
>
20 PKG_LICENSE_FILES
:=LICENSE
22 PKG_BUILD_DEPENDS
:=luarocks
/host
24 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=ldbus Lua DBus bindings
34 define Package
/ldbus
/description
35 This package contains
"ldbus": LUA bindings to interact with the DBUS
36 message bus system
, and services connected to it.
37 See https
://github.com
/daurnimator
/ldbus
42 -I
$(STAGING_DIR
)/usr
/include
46 CFLAGS
="$(TARGET_CFLAGS)" \
47 LDFLAGS
="$(TARGET_LDFLAGS)"
50 cd
$(PKG_BUILD_DIR
) && \
51 luarocks make
--pack-binary-rock ldbus-scm-0.rockspec \
52 LUA_LIBDIR
=$(STAGING_DIR
)/usr
/lib
/lua \
54 DBUS_INCDIR
=$(STAGING_DIR
)/usr
/include/dbus-1.0
/ \
55 DBUS_ARCH_INCDIR
=$(STAGING_DIR
)/usr
/lib
/dbus-1.0
/include \
56 DBUS_LIBDIR
=$(STAGING_DIR
)/usr
/lib \
57 CC
="$(TARGET_CC)" LD
="$(TARGET_CC)"
60 define Package
/ldbus
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
62 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ldbus.so
$(1)/usr
/lib
/lua
65 $(eval
$(call BuildPackage
,ldbus
))