Permalink
Browse files

Try and get the packages we need from the deb files.

  • Loading branch information...
1 parent ab1880d commit 604d27d12278ca1f337aba521887df1cd89ea062 @jeremyboles jeremyboles committed Oct 23, 2012
Showing with 29 additions and 41 deletions.
  1. +19 −39 bin/compile
  2. +10 −2 bin/release
View
@@ -1,51 +1,31 @@
#!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
-set -eo pipefail
+set -x
+set -e
+set -o pipefail
-# config
-LP_DIR=`cd $(dirname $0); cd ..; pwd`
-
-BIN_DIR=$(cd $(dirname $0); pwd) # absolute path
-ROOT_DIR=$(dirname $BIN_DIR)
BUILD_DIR=$1
CACHE_DIR=$2
+export UBUNTU_URL=http://us.archive.ubuntu.com/ubuntu
-echo "-------> Downloading and libffi"
-LIBFFI_URL="http://mirrors.kernel.org/sources.redhat.com/libffi/libffi-3.0.11.tar.gz"
-curl -sO "$LIBFFI_URL"
-
-echo "-------> Unpacking and libffi"
-tar -zxf libffi-3.0.11.tar.gz
-
-echo "-------> Configuring libffi"
-cd libffi-3.0.11
-./configure --prefix=$LP_DIR --disable-debug --disable-dependency-tracking
-make install
-
-echo "-------> Downloading and glib"
-GLIB_URL="ftp://ftp.gnome.org/pub/gnome/sources/glib/2.32/glib-2.32.4.tar.xz"
-curl -sO "$GLIB_URL"
-
-echo "-------> Unpacking and glib"
-tar -Jxf glib-2.32.4.tar.xz
+echo "DEB_PACKAGES: '$DEB_PACKAGES'"
-echo "-------> Configuring glib"
-cd glib-2.32.4
-./configure --disable-maintainer-mode --disable-dependency-tracking --disable-dtrace --prefix=$LP_DIR
-make
-make install
+download () {
+ DEB_PATH=$1
+ DEB_FILE=$(basename $DEB_PATH)
+ curl -vf $UBUNTU_URL/pool/$DEB_PATH > $DEB_FILE
+ dpkg-deb -X $DEB_FILE $BUILD_DIR/sw
+}
+mkdir $BUILD_DIR/sw
-echo "-------> Downloading and atk"
-ATK_URL="http://ftp.gnome.org/pub/gnome/sources/atk/2.4/atk-2.4.0.tar.xz"
-curl -sO "$ATK_URL"
+download main/a/atk1.0/libatk1.0-0_1.30.0-0ubuntu2_amd64.deb
-echo "-------> Unpacking and atk"
-tar -Jxf atk-2.4.0.tar.xz
+find $BUILD_DIR/sw -type l -ls
-echo "-------> Configuring atk"
-cd atk-2.4.0
-./configure --disable-dependency-tracking --prefix=$LP_DIR --enable-introspection=no
-make
-make install
+export LDFLAGS="-L$BUILD_DIR/sw/lib -L$BUILD_DIR/sw/usr/lib"
+export CPPFLAGS="-I$BUILD_DIR/sw/usr/include"
+export GEM_HOME="$BUILD_DIR/gems"
+export GEM_PATH=""
+export PATH="$GEM_HOME/bin:$BUILD_DIR/sw/bin:$BUILD_DIR/sw/usr/bin:$PATH"
View
@@ -1,2 +1,10 @@
-#!/bin/sh
-echo "--- {}"
+#!/usr/bin/env bash
+# bin/release <build-dir>
+
+BUILD_DIR=$1
+
+cat <<EOF
+---
+config_vars:
+ LD_LIBRARY_PATH: sw/lib
+EOF

0 comments on commit 604d27d

Please sign in to comment.