owfs: Make version apk compatible
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 17 Nov 2024 11:04:14 +0000 (13:04 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 17 Nov 2024 13:59:51 +0000 (15:59 +0200)
Adjust version to be compatible with apk's semanting versioning.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
utils/owfs/Makefile

index 5535a85361c0eb46f5ce31061c3d1324814bcc40..63320bf7b16421d6d64510746aa1a66ca79d039e 100644 (file)
@@ -8,13 +8,16 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=owfs
-PKG_VERSION:=3.2p4
+PKG_REAL_VERSION:=3.2p4
+PKG_VERSION:=$(subst p,.,$(PKG_REAL_VERSION))
 PKG_RELEASE:=2
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://github.com/owfs/owfs/releases/download/v$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_REAL_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/owfs/owfs/releases/download/v$(PKG_REAL_VERSION)
 PKG_HASH:=af0a5035f3f3df876ca15aea13486bfed6b3ef5409dee016db0be67755c35fcc
 
+PKG_BUILD_DIR :=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_REAL_VERSION)
+
 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
 PKG_LICENSE:=GPL-2.0
 PKG_CPE_ID:=cpe:/a:owfs:owfs