view src/opkg-mqtt.mk @ 6296:ac2ffb9c58ca

* src/opkg-mqtt.mk: implement update rule
author John Donoghue <john.donoghue@ieee.org>
date Thu, 07 Jul 2022 08:31:32 -0400
parents 42b2fb1a2f70
children 17e88be8f3ed
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := opkg-mqtt
$(PKG)_IGNORE   :=
$(PKG)_VERSION  := 0.0.1
$(PKG)_CHECKSUM := 4b8c95fe20b4e67747b6d2712db1965d0baaba4a
$(PKG)_SUBDIR   := octave-mqtt-$($(PKG)_VERSION)
$(PKG)_FILE     := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL      := https://downloads.sourceforge.net/project/octave-mqtt/v$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS     := paho-mqtt-c

ifeq ($(ENABLE_BINARY_PACKAGES),yes)
  $(PKG)_DEPS += $(OCTAVE_TARGET)
endif

define $(PKG)_UPDATE
    $(WGET) -q -O- https://sourceforge.net/p/octave-mqtt/code/ci/default/tree/ | \
    $(SED) -n 's|.*code/ci/release-\([0-9][0-9.]*\)/tree.*|\1|p' | $(SORT) -V | \
    tail -1
endef

define $(PKG)_BUILD
  $(OCTAVE_FORGE_PKG_BUILD)
endef