Author: bdubbs
Date: Sun Aug 11 22:16:34 2019
New Revision: 21939

Log:
Fix currency for pcre2

Modified:
   trunk/scripts/blfs-chapter09.php

Modified: trunk/scripts/blfs-chapter09.php
==============================================================================
--- trunk/scripts/blfs-chapter09.php    Sun Aug 11 22:05:14 2019        (r21938)
+++ trunk/scripts/blfs-chapter09.php    Sun Aug 11 22:16:34 2019        (r21939)
@@ -169,6 +169,10 @@
         'match'   => '^.*$',
         'replace' => "https://github.com/seccomp/libseccomp/releases"; ),
 
+ array( 'pkg'     => 'pcre2',
+        'match'   => '^.*$',
+        'replace' => "https://sourceforge.net/projects/pcre/files/pcre2"; ),
+
  array( 'pkg'     => 'wayland',
         'match'   => '^.*$',
         'replace' => "https://wayland.freedesktop.org/releases.html"; ),
@@ -288,6 +292,13 @@
       $dirpath .= "/$dir";
     }
 
+    if ( $book_index == "pcre2" )
+    {
+      exec( "curl -L -s -m40 -A Firefox/41.0 $dirpath", $lines );
+      $ver = find_max( $lines, "/pcre2-/", "/^.*pcre2-([\d\.]+).zip.*/" );
+      return $ver;
+    }
+
     // Customize http directories as needed
     if ( $book_index != "json-c")
     {
-- 
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