Changeset e43b7e7


Ignore:
Timestamp:
07/03/2023 09:53:41 AM (15 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/update-glibc
Children:
8772b7b
Parents:
bf7d328
git-author:
Xi Ruoyao <xry111@…> (07/03/2023 09:48:44 AM)
git-committer:
Xi Ruoyao <xry111@…> (07/03/2023 09:53:41 AM)
Message:

currency: Add libxcrypt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lfs-latest-git.php

    rbf7d328 re43b7e7  
    107107
    108108  return "$dirpath/$max";
     109}
     110
     111function github( $path )
     112{
     113  return "https://api.github.com/repos/$path/releases/latest";
    109114}
    110115
     
    130135if ( $package == "intltool"   ) $dirpath = "https://launchpad.net/intltool/trunk";
    131136if ( $package == "libffi"     ) $dirpath = "https://github.com/libffi/libffi/releases";
     137if ( $package == "libxcrypt"  ) $dirpath = github("besser82/libxcrypt");
    132138if ( $package == "meson"      ) $dirpath = "https://github.com/mesonbuild/meson/releases";
    133139if ( $package == "mpc"        ) $dirpath = "https://ftp.gnu.org/gnu/mpc";
     
    332338     return find_max( $lines, "/Zstandard v/", "/^.*v([\d\.]+).*$/" );
    333339
     340  if ( preg_match( "/api.github.com/", $dirpath) )
     341     return ltrim(json_decode(join("", $lines))->tag_name, "v");
     342
    334343  // Most packages are in the form $package-n.n.n
    335344  // Occasionally there are dashes (e.g. 201-1)
Note: See TracChangeset for help on using the changeset viewer.