Author: bdubbs
Date: Sat Aug  5 14:26:48 2017
New Revision: 18989

Log:
Update script for soundtouch and faad2

Modified:
   trunk/scripts/blfs-chapter46.php

Modified: trunk/scripts/blfs-chapter46.php
==============================================================================
--- trunk/scripts/blfs-chapter46.php    Sat Aug  5 08:51:04 2017        (r18988)
+++ trunk/scripts/blfs-chapter46.php    Sat Aug  5 14:26:48 2017        (r18989)
@@ -34,7 +34,7 @@
 $regex[ 'libmusicbrainz1'  ] = "/^.*libmusicbrainz-(5[\d\.]+\d).*$/";
 $regex[ 'libquicktime'     ] = "/^.*Download libquicktime-([\d\.]+\d).tar.*$/";
 $regex[ 'libsamplerate'    ] = "/^.*libsamplerate-([\d\.]+\d).tar.*$/";
-$regex[ 'soundtouch'       ] = "/^.*Download Source Codes release 
([\d\.]+\d).*$/";
+$regex[ 'soundtouch'       ] = "/^.*Download .* Source Codes release 
([\d\.]+\d).*$/";
 $regex[ 'xine-lib'         ] = "/^.*Download xine-lib-([\d\.]+\d).tar.*$/";
 $regex[ 'v'                ] = "/^.*fdk-aac ([\d\.]+) *$/";
 
@@ -254,7 +254,13 @@
   }
 
   if ( $package == "faad2" )
+  {
+      // Need to get max dir and go down
+      $dir = find_max( $lines, "/faad2-\d/", "/^.*(faad2-[\d\.]+).*$/" );
+      $dirpath .= "/$dir";
+      exec( "links -dump $dirpath", $lines );
       return find_max( $lines, "/faad2-\d/", "/^.*faad2-([\d\.]+).tar.*$/" );
+  }
 
   if ( $package == "gstreamer" )
       return find_even_max( $lines, "/gstreamer/", 
"/^.*gstreamer-(1\.[\d\.]+).tar.*$/" );
@@ -290,9 +296,6 @@
   if ( $package == "libvpx" )
       return find_max( $lines, "/v\d/", "/^.*sv([\d\.]+)v.*$/" );
 
-  if ( $package == "soundtouch" )
-      return find_max( $lines, "/soundtouch/", "/^.*soundtouch-([\d\.]+).*$/" 
);
-
   if ( $package == "speex" || 
        $package == "speexdsp" )
       return find_max( $lines, "/$package/", 
"/^.*$package-([\d\.rc]+).tar.*$/" );
-- 
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