blob: 6a638189d63750b41f1fea9d8861a68e252b380b [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import common
from autotest_lib.client.bin import utils
version = 1
def setup(tarball, topdir):
srcdir = os.path.join(topdir, 'src')
utils.extract_tarball_to_dir(tarball, srcdir)
utils.system('patch < ../configure_no_gsm.patch')
utils.system('./configure --without-magic --prefix=%s' % topdir)
utils.system('make install')
# The source is grabbed from
pwd = os.getcwd()
tarball = os.path.join(pwd, 'sox-14.3.2.tar.gz')
utils.update_version(pwd+'/src', False, version, setup, tarball, pwd)