Author: bdubbs
Date: Mon Nov 25 04:12:01 2019
New Revision: 22398

Log:
Update currency for icu and alsa-lib

Modified:
   trunk/scripts/blfs-chapter09.php
   trunk/scripts/blfs-chapter46.php

Modified: trunk/scripts/blfs-chapter09.php
==============================================================================
--- trunk/scripts/blfs-chapter09.php    Mon Nov 25 03:48:37 2019        (r22397)
+++ trunk/scripts/blfs-chapter09.php    Mon Nov 25 04:12:01 2019        (r22398)
@@ -147,7 +147,7 @@
 
  array( 'pkg'     => 'icu4c',
         'match'   => '^.*$',
-        'replace' => "https://sourceforge.net/projects/icu/files/ICU4C"; ),
+        'replace' => "https://github.com/unicode-org/icu/releases"; ),
 
  array( 'pkg'     => 'json-c',
         'match'   => '^.*$',
@@ -361,9 +361,10 @@
 
   if ( $book_index == "icu4c" )
   {
-    $dir   = find_max( $lines, '/ +\d+\.\d/', '/^ +(\d+\.\d+) .*$/' );
-    $lines = http_get_file( "$dirpath/$dir" );
-    return find_max( $lines, '/icu4c/', '/^.*icu4c-([\d_]+)-src.*$/' );
+    //$dir   = find_max( $lines, '/ +\d+\.\d/', '/^ +(\d+\.\d+) .*$/' );
+    //$lines = http_get_file( "$dirpath/$dir" );
+    $ver = find_max( $lines, '/ICU \d/', '/^.*ICU ([\d\.]+).*$/' );
+    return preg_replace( "/\./", "_", $ver );
   }
 
   if ( $book_index == "json-c" )

Modified: trunk/scripts/blfs-chapter46.php
==============================================================================
--- trunk/scripts/blfs-chapter46.php    Mon Nov 25 03:48:37 2019        (r22397)
+++ trunk/scripts/blfs-chapter46.php    Mon Nov 25 04:12:01 2019        (r22398)
@@ -297,6 +297,12 @@
       return $max;
   }
 
+  if ( preg_match( '/alsa-lib/', $package ) )
+  {
+      $max = find_max( $lines, "/$package/", 
"/^.*$package-(\d\.[\d\.]+).tar.*$/" );
+      if ( $max != 0 ) return $max;  // else fall through
+  }
+
   if ( preg_match( '/alsa/', $package ) )
   {
       $max = find_max( $lines, "/$package/", "/^.*$package-(\d\.[\d\.]+).*$/" 
);
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to