updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / dodontof-git / PKGBUILD
blobd520106c6189bee092a96ac8a95c6cb81213ef3a
1 pkgname=dodontof-git
2 pkgver=20120107
3 pkgrel=1
4 epoch=
5 pkgdesc="DodontoF is online RPG session site, Anyone can use."
6 arch=('any')
7 url="http://www.dodontof.com/"
8 license=('GPL')
9 groups=()
10 depends=('ruby' 'apache')
11 makedepends=('git')
12 checkdepends=()
13 optdepends=()
14 provides=()
15 conflicts=('dodontof')
16 replaces=()
17 backup=()
18 options=()
19 install=
20 changelog=
21 source=(DodontoFServer.patch
22         WebCameraCaptureImageUploader.patch
23         src_ruby_config.patch
24         )
25 noextract=()
27 md5sums=('c67b0e7ab390413a742f54ed9b7c6754'
28          'd95cdcc3576810b7b3d039d70239c200'
29          'e69d8bd07e41e08144dab2786fde2ad1')
31 _gitroot="git://github.com/torgtaitai/DodontoF.git"
32 _gitname="DodontoF"
34 build() {
35   mkdir -p ${pkgdir}/srv/http
36   cd $srcdir
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."
42   else
43     git clone $_gitroot
44   fi
46   msg "GIT checkout done or server timeout"
47   msg "Starting make..."
48   
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
55   cd ..
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: