luajit2: switch to GIT source and adapt to APK friendly version
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 23 Oct 2024 16:55:40 +0000 (18:55 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 29 Oct 2024 09:10:28 +0000 (10:10 +0100)
Switch to GIT source and adapt to APK friendly version.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
lang/luajit2/Makefile

index e1d8179e9e35dff6f8a293a88613b4ddac589b93..cdbbd2a2705fbb7b0f3e2e1900a3f69ba8aad076 100644 (file)
@@ -1,12 +1,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luajit2
-PKG_VERSION:=2.1-20240626
+PKG_SOURCE_DATE:=2024-06-26
+PKG_VERSION:=2.1.$(subst -,.,$(PKG_SOURCE_DATE))
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://github.com/openresty/luajit2/archive/refs/tags/v$(PKG_VERSION).tar.gz?
-PKG_HASH:=1e53822a1105df216b9657ccb0293a152ac5afd875abc848453bfa353ca8181b
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/openresty/luajit2
+PKG_SOURCE_VERSION:=dc397b66e6c8065185343cbe5dbeb4532f8e0b92
+PKG_MIRROR_HASH:=012a4b8f64c7f8b217940fe44719bca934b2bb506f4c7f03dd3c9a592e1c55ae
 
 PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
 PKG_LICENSE:=MIT