1 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
2 # for more information on packaging from GIT sources.
4 # Maintainer: Leo von Klenze <leo@devel.von-klenze.de>
8 pkgdesc="Cloud9 IDE - Your code anywhere, anytime. Open Source Javascript Cloud9 IDE"
10 url="https://github.com/ajaxorg/cloud9/tree/$pkgver"
14 source=(middleware.patch)
16 md5sums=(6c6664ccb741a5152771556add84d115)
17 install=(cloud9.install)
19 gitroot="https://github.com/ajaxorg/cloud9.git"
25 msg "Connecting to GIT server...."
27 if [ -d $gitname ] ; then
32 git clone $gitroot $gitname
35 git submodule update --init --recursive
37 # patch middleware to avoid writing to program directory
38 patch -p 1 < "../../middleware.patch"
42 install -d "$pkgdir/opt/cloud9"
43 install -d "$pkgdir/usr/bin"
44 ln -s "/opt/cloud9/bin/cloud9.js" "$pkgdir/usr/bin/cloud9"
46 find . -path '*/.git*' -prune -or -type f -and -print | while read file; do
47 dir=$(dirname "$pkgdir/opt/$file")