Permalink
Browse files

arch

  • Loading branch information...
1 parent 8eafa8f commit e8bdc42a2f029f920ce892a3efb6092ff8e2cc30 @krav krav committed Oct 30, 2012
Showing with 56 additions and 49 deletions.
  1. +55 −48 setup.sh
  2. +1 −1 web/lib/lamt
View
@@ -6,71 +6,78 @@ mkdir -p inst
cd inst
case $os in
- *BSD)
- pkg_add -r git gmake
- cd /usr/ports/lang/lua && make && make install
- cd /usr/ports/audio/liquidsoap && make && make install
- cd /usr/src && [ -d luarocks ] ||
- # git clone git://github.com/keplerproject/luarocks.git
- # until they merge my pull request
- git clone git://github.com/comotion/luarocks.git
+ *BSD)
+ pkg_add -r git gmake
+ cd /usr/ports/lang/lua && make && make install
+ cd /usr/ports/audio/liquidsoap && make && make install
+ cd /usr/src && [ -d luarocks ] ||
+ # git clone git://github.com/keplerproject/luarocks.git
+ # until they merge my pull request
+ git clone git://github.com/comotion/luarocks.git
- cd luarocks && ./configure --with-lua-include=/usr/local/include/lua51 && make && make install
- cd -
- [ -d tokyocabinet-1.4.47 ] || wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz -qO - | tar xzf -
- cd tokyocabinet-1.4.47 && ./configure && make ;make install
- cd -
- [ -d tokyocabinet-lua-1.10 ] || wget http://fallabs.com/tokyocabinet/luapkg/tokyocabinet-lua-1.10.tar.gz -qO - | tar xzf -
- cd tokyocabinet-lua*
- ./configure CFLAGS='-I/usr/local/include/lua51 -I/usr/local/include -std=c99 -fPIC'
- make CFLAGS='-I/usr/local/include/lua51 -I/usr/local/include -std=c99 -fPIC'
- make install
- cd -
- ;;
- *Linux)
- dist=`lsb_release -si`
- case $dist in
- Debian|Ubuntu)
- apt-get install luarocks zlib1g-dev liquidsoap libbz2-dev libssl-dev
- apt-get install liquidsoap-plugin-lame
- # somethings wrong with the debian headers
- #apt-get install tokyocabinet-bin libtokyocabinet-dev
+ cd luarocks && ./configure --with-lua-include=/usr/local/include/lua51 && make && make install
+ cd -
+ [ -d tokyocabinet-1.4.47 ] || wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz -qO - | tar xzf -
+ cd tokyocabinet-1.4.47 && ./configure && make ;make install
+ cd -
+ [ -d tokyocabinet-lua-1.10 ] || wget http://fallabs.com/tokyocabinet/luapkg/tokyocabinet-lua-1.10.tar.gz -qO - | tar xzf -
+ cd tokyocabinet-lua*
+ ./configure CFLAGS='-I/usr/local/include/lua51 -I/usr/local/include -std=c99 -fPIC'
+ make CFLAGS='-I/usr/local/include/lua51 -I/usr/local/include -std=c99 -fPIC'
+ make install
+ cd -
+ ;;
+ *Linux)
+ dist=`lsb_release -si`
+ case $dist in
+ Debian|Ubuntu)
+ apt-get install luarocks zlib1g-dev liquidsoap libbz2-dev libssl-dev
+ apt-get install liquidsoap-plugin-lame
+ # somethings wrong with the debian headers
+ #apt-get install tokyocabinet-bin libtokyocabinet-dev
- #[ -d bzip2-1.0.6 ] || wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz -qO - | tar xzf -
- #cd bzip2-*
- #make && make install
- #cd -
+ #[ -d bzip2-1.0.6 ] || wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz -qO - | tar xzf -
+ #cd bzip2-*
+ #make && make install
+ #cd -
- [ -d tokyocabinet-1.4.47 ] || wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz -qO - | tar xzf -
- cd tokyocabinet-1.4.47 && ./configure && make ;make install
- cd -
+ [ -d tokyocabinet-1.4.47 ] || wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz -qO - | tar xzf -
+ cd tokyocabinet-1.4.47 && ./configure && make ;make install
+ cd -
[ -d tokyotyrant-1.1.41 ] || wget http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz -qO - | tar xzf -
cd tokyotyrant-1.1.41 && ./configure --enable-lua && make
make install
cd -
- [ -d tokyocabinet-lua-1.10 ] || wget http://fallabs.com/tokyocabinet/luapkg/tokyocabinet-lua-1.10.tar.gz -qO - | tar xzf -
- cd tokyocabinet-lua*
- ./configure && make
- make install
- cd -
- ;;
- *)
- echo "What is this $os $dist ??"
- echo "You'll need to install zlib, and tokyocabinet your own damn self.. and patch setup.sh to do this from now on!"
- ;;
- esac
-
+ [ -d tokyocabinet-lua-1.10 ] || wget http://fallabs.com/tokyocabinet/luapkg/tokyocabinet-lua-1.10.tar.gz -qO - | tar xzf -
+ cd tokyocabinet-lua*
+ ./configure && make
+ make install
+ cd -
+ ;;
+ archlinux)
+ packer -S lua luarocks tokyocabinet tokyocabinet-lua
+ ;;
+ *)
+ echo "What is this $os $dist ??"
+ echo "You'll need to install zlib, and tokyocabinet your own damn self.. and patch setup.sh to do this from now on!"
+ ;;
+ esac
esac
for module in orbit lua-cjson lua-iconv luacrypto struct
do
luarocks install $module
done
+
# until I can get this rockified
[ -d $olddir/web/lib/lamt ] && cd $olddir/web/lib && git clone git://github.com/comotion/lamt
# patch orbit
-sed -i 's/\[\%w_\]/[%_w]/g' /usr/local/share/lua/5.1/orbit/model.lua
+if [ -f /usr/share/lua/5.1/orbit/model.lua ] ; then
+ sed -i 's/\[\%w_\]/[%_w]/g' /usr/share/lua/5.1/orbit/model.lua
+else
+ sed -i 's/\[\%w_\]/[%_w]/g' /usr/local/share/lua/5.1/orbit/model.lua
+fi
cd $olddir/web
Submodule lamt updated from 6a2772 to 1c6f6e

0 comments on commit e8bdc42

Please sign in to comment.