Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Splashy < splash at open-web dot fr>
- pkgname=diaspora-git
- pkgver=20100920
- pkgrel=1
- pkgdesc="An open source social network"
- arch=('i686' 'x86_64')
- url="http://www.joindiaspora.com/"
- license=('AGPL3')
- depends=('ruby1.8' 'rubygems1.8' 'ruby1.8-bundler' 'ruby1.8-rake' 'mongodb' 'openssl' 'imagemagick' 'libffi' 'libxslt')
- makedepends=('git')
- _gitroot="git://github.com/diaspora/diaspora.git"
- _gitname="diaspora"
- build() {
- msg "Connecting to the GIT server...."
- if [[ -d $srcdir/$_gitname ]] ; then
- cd $srcdir/$_gitname
- git pull origin
- msg "The local files are updated..."
- else
- git clone $_gitroot
- fi
- msg "GIT checkout done."
- msg "Start making..."
- sed -i -e "s/bundle /bundle-1.8 /" \
- -e "s/ruby /ruby-1.8 /" \
- ./script/server
- install -d $srcdir/diaspora-gems/
- cd $srcdir/diaspora
- GEM_HOME=$srcdir/diaspora-gems bundle-1.8 install
- }
- package() {
- install -d $pkgdir/{usr/bin,opt}
- cp -r $srcdir/diaspora $pkgdir/opt/
- cp -r $srcdir/diaspora-gems $pkgdir/opt/
- # The PATH added is to make sure that ruby version 1.8 will be invoked
- # instead of the newer one.
- echo "cd /opt/diaspora && PATH=/opt/ruby1.8/bin:$PATH GEM_HOME=/opt/diaspora-gems ./script/server" \
- >$pkgdir/usr/bin/diaspora
- chmod 755 $pkgdir/usr/bin/diaspora
- msg "To login as a sample user:"
- msg "sudo /etc/rc.d/mongodb start"
- msg "cd /opt/diaspora"
- msg "sudo rake-1.8 db:seed:tom"
- msg "sudo diaspora"
- msg "Go to http://localhost:3000/ then login with user tom and password evankorth"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement