xxhash: switch to local git tarballs
authorRosen Penev <rosenp@gmail.com>
Sat, 13 Apr 2024 21:33:22 +0000 (14:33 -0700)
committerRosen Penev <rosenp@gmail.com>
Sun, 21 Apr 2024 01:06:21 +0000 (18:06 -0700)
Smaller and avoids having to use PKG_UNPACK.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/xxhash/Makefile

index 4b5598f413d7bf52eaefbafafe63f17530240127..510193338ae08bfa2cd8142a3acdc2d8b6b175d2 100644 (file)
@@ -12,11 +12,12 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=xxhash
 PKG_VERSION:=0.8.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
-PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://github.com/Cyan4973/xxHash/archive/v$(PKG_VERSION)
-PKG_HASH:=baee0c6afd4f03165de7a4e67988d16f0f2b257b51d0e3cb91909302a26a79c4
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_VERSION:=v$(PKG_VERSION)
+PKG_SOURCE_URL:=https://github.com/Cyan4973/xxHash
+PKG_MIRROR_HASH:=0602a12e9ecd009f97a2a845fb5e46af69a60f96547952e5b00228f33bed5cdd
 
 # The source for the library (xxhash.c and xxhash.h) is BSD
 # The source for the command line tool (xxhsum.c) is GPLv2+
@@ -28,8 +29,6 @@ PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
-PKG_UNPACK:=$(HOST_TAR) -C "$(PKG_BUILD_DIR)" --strip-components=1 -xzf "$(DL_DIR)/$(PKG_SOURCE)"
-
 define Package/xxhash/Default
   TITLE:=Extremely fast hash algorithm
   URL:=https://xxhash.com/