libedit: replace version format with apk compatible version
authorJan Hák <jan.hak@nic.cz>
Thu, 15 Aug 2024 10:58:36 +0000 (12:58 +0200)
committerRosen Penev <rosenp@gmail.com>
Fri, 16 Aug 2024 23:01:11 +0000 (16:01 -0700)
Signed-off-by: Jan Hák <jan.hak@nic.cz>
libs/libedit/Makefile

index 2fe1d3e965b842be063ba79cf0c14c105ecf31d6..56852bc38b045ecf75504262499245c13f20e22f 100644 (file)
@@ -7,14 +7,18 @@
 
 include $(TOPDIR)/rules.mk
 
+VERSION:=3.1
+RELEASE_DATE:=20240808
+
 PKG_NAME:=libedit
-PKG_VERSION:=20240808-3.1
+PKG_VERSION:=$(RELEASE_DATE).$(VERSION)
 PKG_RELEASE:=1
 
 PKG_MAINTAINER:=Daniel Salzman <daniel.salzman@nic.cz>
 PKG_LICENSE:=BSD-3-Clause
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(RELEASE_DATE)-$(VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(RELEASE_DATE)-$(VERSION).tar.gz
 PKG_SOURCE_URL:=https://thrysoee.dk/editline/
 PKG_HASH:=5f0573349d77c4a48967191cdd6634dd7aa5f6398c6a57fe037cc02696d6099f