From 1d5eec4b4905540ddd9466304e8ee199fa3b327f Mon Sep 17 00:00:00 2001 From: Julian Lepinski Date: Mon, 18 Nov 2013 14:15:59 -0800 Subject: [PATCH] =?UTF-8?q?let=E2=80=99s=20try=20a=20whole=20new=20way=20t?= =?UTF-8?q?o=20do=20this?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/compile | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/bin/compile b/bin/compile index b60039d..7e3c161 100755 --- a/bin/compile +++ b/bin/compile @@ -4,28 +4,20 @@ indent() { sed -u 's/^/ /' } -echo "sox buildpack: downloading sox files..." - +echo "-----> Install sox" BUILD_DIR=$1 VENDOR_DIR="vendor" +DOWNLOAD_URL="https://dl.dropboxusercontent.com/u/1870/gh/sox.tar.gz" + +echo "DOWNLOAD_URL = " $DOWNLOAD_URL | indent cd $BUILD_DIR mkdir -p $VENDOR_DIR cd $VENDOR_DIR +curl -L --silent $DOWNLOAD_URL | tar xz -curl https://dl.dropboxusercontent.com/u/1870/gh/sox.tar.gz -s -O -tar zxpf sox.tar.gz -rm sox.tar.gz - -echo "sox buildpack: exporting paths" - +echo "exporting PATH and LIBRARY_PATH" | indent PROFILE_PATH="$BUILD_DIR/.profile.d/sox.sh" mkdir -p $(dirname $PROFILE_PATH) echo 'export PATH="$PATH:vendor/sox/bin"' >> $PROFILE_PATH echo 'export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:vendor/sox/lib"' >> $PROFILE_PATH - -echo "sox buildpack: testing sox with no relative path..." - -sox - -echo "sox buildpack: sox is (hopefully?) installed" \ No newline at end of file