Przeglądaj źródła

dirent: add 1.24 version (#5179)

star9029 1 rok temu
rodzic
commit
4516e5b35f
1 zmienionych plików z 5 dodań i 3 usunięć
  1. 5 3
      packages/d/dirent/xmake.lua

+ 5 - 3
packages/d/dirent/xmake.lua

@@ -4,10 +4,12 @@ package("dirent")
     set_description("C/C++ library for retrieving information on files and directories")
     set_license("MIT")
 
-    add_urls("https://github.com/tronkko/dirent.git")
-    add_versions("2023.5.21", "ab35ddf7611b19529e0d7ef7e9719429483dcddd")
+    add_urls("https://github.com/tronkko/dirent/archive/refs/tags/$(version).tar.gz",
+             "https://github.com/tronkko/dirent.git")
 
-    on_install("windows", function (package)
+    add_versions("1.24", "37009127a65bb1ddc47d06c097321f87f45ca2e998b2ec3bf2e0b2b19649d6f9")
+
+    on_install("windows", "mingw", "msys", "cygwin", function (package)
         os.cp("include", package:installdir())
     end)