Author: bdubbs
Date: Wed Apr 13 14:03:52 2016
New Revision: 17256

Log:
Update script for frei0r name change

Modified:
   trunk/scripts/blfs-chapter46.php

Modified: trunk/scripts/blfs-chapter46.php
==============================================================================
--- trunk/scripts/blfs-chapter46.php    Wed Apr 13 13:36:57 2016        (r17255)
+++ trunk/scripts/blfs-chapter46.php    Wed Apr 13 14:03:52 2016        (r17256)
@@ -18,7 +18,7 @@
 
 $ignores = array();
 
-//$current="x265";
+//$current="frei0r-plugins";
 
 $regex = array();
 $regex[ 'faac'             ] = "/^.*Download faac-(\d[\d\.]+\d).tar.*$/";
@@ -49,9 +49,9 @@
           'match'   => '^.*$', 
           'replace' => "http://sourceforge.net/projects/opencore-amr/files"; ),
 
-   array( 'pkg'     => 'frei',
+   array( 'pkg'     => 'frei0r-plugins',
           'match'   => '^.*$', 
-          'replace' => "https://files.dyne.org/frei0r/snapshots"; ),
+          'replace' => "https://files.dyne.org/frei0r/releases"; ),
 
    array( 'pkg'     => 'a52dec',
           'match'   => '^.*$', 
@@ -216,6 +216,13 @@
         return $max;
      }
 
+     if ( $package == "frei0r-plugins" )
+     {
+        exec( "wget  -q --no-check-certificate -O- $dirpath", $output );
+        $max = find_max( $output, "/frei0r/", 
"/^.*plugins-([\d\.]*\d)\.tar.*$/" );
+        return $max;
+     }
+
      $lines = http_get_file( $dirpath );
 
      if ( ! is_array( $lines ) ) return $lines;
@@ -240,9 +247,6 @@
   if ( $package == "faad2" )
       return find_max( $lines, "/faad2-\d/", "/^.*faad2-([\d\.]+).*$/" );
 
-  if ( $package == "frei0r-snapshot" )
-      return find_max( $lines, "/frei0r/", "/^.*snapshot-([\d\-]+).tar.*$/" );
-
   if ( $package == "gstreamer" )
       return find_even_max( $lines, "/gstreamer/", 
"/^.*gstreamer-(1\.[\d\.]+).tar.*$/" );
 
@@ -305,8 +309,8 @@
      array( 'pkg'   => 'faad2', 
             'regex' => "/^.*faad2-(\d[\d\.]+).*$/" ),
      
-     array( 'pkg'   => 'frei0r', 
-            'regex' => "/^.*frei0r-snapshot-(\d[\d\-]+).*$/" ),
+     array( 'pkg'   => 'frei', 
+            'regex' => "/^.*frei0r-plugins-(\d[\d\.]+).*$/" ),
      
      array( 'pkg'   => 'libmpeg2', 
             'regex' => "/^.*libmpeg2-(\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