1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Hiroki Umezaki <raa0121@gmail.com>
11 pkgdesc="DodontoF is online RPG session site, Anyone can use."
13 url="http://www.dodontof.com/"
16 depends=('ruby' 'apache')
27 source=("http://www.dodontof.com/DodontoF/DodontoF_Ver.${pkgver}.zip"
29 WebCameraCaptureImageUploader.patch
32 noextract=('[source].zip')
34 md5sums=('d66ff132c6149c22afdbbd3e8de9d661'
35 'c67b0e7ab390413a742f54ed9b7c6754'
36 'd95cdcc3576810b7b3d039d70239c200'
37 'e69d8bd07e41e08144dab2786fde2ad1') #gerate with 'makepkg -g'
40 mkdir -p ${pkgdir}/srv/http
41 patch -p0 $srcdir/DodontoF/DodontoFServer.rb < DodontoFServer.patch
42 patch -p0 $srcdir/DodontoF/WebCameraCaptureImageUploader.rb < WebCameraCaptureImageUploader.patch
43 patch -p0 $srcdir/DodontoF/src_ruby/config.rb < src_ruby_config.patch
45 chmod 755 DodontoFServer.rb WebCameraCaptureImageUploader.rb saveData imageUploadSpace imageUploadSpace/smallImages saveDataTempSpace fileUploadSpace replayDataUploadSpace
46 chmod 666 log.txt log.txt.0
48 mv DodontoF/saveData .
49 mv DodontoF/imageUploadSpace .
50 mv DodontoF ${pkgdir}/srv/http/DodontoF
51 mv imageUploadSpace ${pkgdir}/srv/http/imageUploadSpace
52 mv saveData ${pkgdir}/srv/saveData
53 chown -R http:http ${pkgdir}/srv/http/DodontoF ${pkgdir}/srv/http/imageUploadSpace ${pkgdir}/srv/saveData
56 # vim:set ts=2 sw=2 et: