5 pkgdesc="DodontoF is online RPG session site, Anyone can use."
7 url="http://www.dodontof.com/"
10 depends=('ruby' 'apache')
15 conflicts=('dodontof')
21 source=(DodontoFServer.patch
22 WebCameraCaptureImageUploader.patch
27 md5sums=('c67b0e7ab390413a742f54ed9b7c6754'
28 'd95cdcc3576810b7b3d039d70239c200'
29 'e69d8bd07e41e08144dab2786fde2ad1')
31 _gitroot="git://github.com/torgtaitai/DodontoF.git"
35 mkdir -p ${pkgdir}/srv/http
37 msg "Connecting to GIT server...."
39 if [ -d $startdir/src/$_gitname ] ; then
40 cd $_gitname && git pull origin
41 msg "The local files are updated."
46 msg "GIT checkout done or server timeout"
47 msg "Starting make..."
49 patch -p0 $srcdir/$_gitname/DodontoFServer.rb < DodontoFServer.patch
50 patch -p0 $srcdir/$_gitname/WebCameraCaptureImageUploader.rb < WebCameraCaptureImageUploader.patch
51 patch -p0 $srcdir/$_gitname/src_ruby/config.rb < src_ruby_config.patch
52 cd "$srcdir/$_gitname"
53 chmod 755 DodontoFServer.rb WebCameraCaptureImageUploader.rb saveData imageUploadSpace imageUploadSpace/smallImages saveDataTempSpace fileUploadSpace replayDataUploadSpace
54 chmod 666 log.txt log.txt.0
56 mv $_gitname/saveData .
57 mv $_gitname/imageUploadSpace .
58 mv $_gitname ${pkgdir}/srv/http/$_gitname
59 mv imageUploadSpace ${pkgdir}/srv/http/imageUploadSpace
60 mv saveData ${pkgdir}/srv/saveData
61 chown -R http:http ${pkgdir}/srv/http/DodontoF ${pkgdir}/srv/http/imageUploadSpace ${pkgdir}/srv/saveData
64 # vim:set ts=2 sw=2 et: