omnia-mcutool: fix version for APK
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 26 Oct 2024 10:29:32 +0000 (12:29 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 28 Oct 2024 23:07:54 +0000 (00:07 +0100)
Refactor version of omnia-mcutool for APK.

Switch to git clone and use hash instead of converting 0.3-rc3 to 0.3.3.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/utils/omnia-mcutool/Makefile

index 493649b96148ab5c017b91205e7a1020b6ca8de2..2eca0cf1902474324c33c697dcf3e3b05535c2a9 100644 (file)
@@ -8,12 +8,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=omnia-mcutool
-PKG_VERSION:=0.3-rc3
+PKG_VERSION_REAL:=0.3-rc3
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=https://gitlab.nic.cz/turris/$(PKG_NAME)/-/archive/$(PKG_VERSION)/
-PKG_HASH:=80bc6a01ab86d51ebfdbddf77d74eead999a9bf7dbd08ca1fd4e8e1910eaf192
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL=https://gitlab.nic.cz/turris/$(PKG_NAME)
+PKG_SOURCE_DATE:=2024-08-05
+PKG_SOURCE_VERSION:=3833ade1377076a5c8e394d7afe7679716af0107
+PKG_MIRROR_HASH:=63cfaa388cffc8a5a7d08c14d6428d1bb33ae7aebf62a1764fd57f8bc94f9144
 
 PKG_MAINTAINER:=Marek Mojik <marek.mojik@nic.cz>
 PKG_LICENSE:=GPL-2.0-or-later
@@ -41,7 +43,7 @@ define Build/Compile
                CC="$(TARGET_CC)" \
                CFLAGS="$(TARGET_CFLAGS) -Wall" \
                LDFLAGS="$(TARGET_LDFLAGS)" \
-               MCUTOOL_VERSION="$(PKG_VERSION)"
+               MCUTOOL_VERSION="$(PKG_VERSION_REAL)"
 endef
 
 define Package/omnia-mcutool/install