diff --git a/COMPILING b/COMPILING index c84ca55..b4c7ad9 100644 --- a/COMPILING +++ b/COMPILING @@ -11,6 +11,9 @@ NOTE: ubuntu saucy currently only has libsdl2-dev.2.0.0 in the repositories, but make sure the compiled files are in your PATH (e.g. include $HOME/.cabal/bin in your $PATH) install dependencies & configure app +> cabal sandbox init +> cabal sandbox --add-source deps/hsSDL2 +> cabal sandbox --add-source deps/hsSDL2-ttf > cabal install --only-dependencies > cabal configure diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..5f73744 --- /dev/null +++ b/build.sh @@ -0,0 +1,12 @@ +#!/bin/bash +cabal sandbox init + +cd deps +./getDeps.sh +cd .. + +cabal sandbox add-source deps/hsSDL2 +cabal sandbox add-source deps/hsSDL2-ttf +cabal install --only-dependencies +cabal configure +cabal build diff --git a/deps/getDeps.sh b/deps/getDeps.sh index 7495b25..bde7d1f 100755 --- a/deps/getDeps.sh +++ b/deps/getDeps.sh @@ -45,6 +45,7 @@ cabal install haddock echo "building hsSDL2.." cd hsSDL2 +cabal sandbox delete cabal sandbox init cabal install --only-dependencies cabal build @@ -54,6 +55,8 @@ for t in "hsSDL2-ttf" do echo "building ${t}.." cd "${t}" + cabal sandbox delete + cabal sandbox init cabal sandbox add-source ../hsSDL2 cabal install --only-dependencies cabal build