Bladeren bron

rapidhash: add v1.0 (#6660)

* rapidhash: add v1.0

* rapidhash: fix cxx languages version

* add git url

---------

Co-authored-by: star9029 <[email protected]>
apocelipes 4 maanden geleden
bovenliggende
commit
8b6f519622
1 gewijzigde bestanden met toevoegingen van 6 en 3 verwijderingen
  1. 6 3
      packages/r/rapidhash/xmake.lua

+ 6 - 3
packages/r/rapidhash/xmake.lua

@@ -2,14 +2,17 @@ package("rapidhash")
     set_kind("library", {headeronly = true})
     set_description("Very fast, high quality, platform independant hashing algorithm.")
     set_homepage("https://github.com/Nicoshev/rapidhash")
+    set_license("BSD-2-Clause")
 
-    add_urls("https://github.com/Nicoshev/rapidhash.git")
-    add_versions("2024.06.06", "e795829fedad966b627b316183901d2670a40af8")
+    add_urls("https://github.com/Nicoshev/rapidhash/archive/refs/tags/rapidhash_$(version).tar.gz",
+             "https://github.com/Nicoshev/rapidhash.git")
+
+    add_versions("v1.0", "d295e66eec6745cc0e0c8c65fb8b5edf08ab3af83b0a503c54c6705144b53848")
 
     on_install(function(package)
         os.cp("rapidhash.h", package:installdir("include"))
     end)
 
     on_test(function(package)
-        assert(package:has_cxxfuncs("rapid_mum", {includes = "rapidhash.h"}))      
+        assert(package:has_cxxfuncs("rapidhash", {configs = {languages = "c++11"}, includes = "rapidhash.h"}))
     end)