def src_archive
      from_directory do
        Find.find(File.join("packages", name)) do |file|
          if File.file?(file) && file.match(/\.(spec)|(sh)|(patch)$/).nil?
            return File.basename(file)
          end
        end
        nil
      end
    end
def src_archive
      from_directory do
        Find.find(File.join("packages", name)) do |file|
          if File.file?(file) && file.match(/\.(spec)|(sh)|(patch)$/).nil?
            return File.basename(file)
          end
        end
        nil
      end
    end
def src_archive from_directory do Find . find ( File . join ( "packages" , name ) ) do | file | if File . file? ( file ) && file . match ( / \. / ) . nil? return File . basename ( file ) end end nil end end
returns the name of the source archive file, if any
returns the name of the source archive file if any