updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / dodontof / PKGBUILD
blobc565119a5d11a01b16e9e0f870c3d64e7566a6c0
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>
7 pkgname=dodontof
8 pkgver=1.35.00
9 pkgrel=1
10 epoch=
11 pkgdesc="DodontoF is online RPG session site, Anyone can use."
12 arch=('any')
13 url="http://www.dodontof.com/"
14 license=('GPL')
15 groups=()
16 depends=('ruby' 'apache')
17 makedepends=('unzip')
18 checkdepends=()
19 optdepends=()
20 provides=()
21 conflicts=()
22 replaces=()
23 backup=()
24 options=()
25 install=
26 changelog=
27 source=("http://www.dodontof.com/DodontoF/DodontoF_Ver.${pkgver}.zip"
28         DodontoFServer.patch
29         WebCameraCaptureImageUploader.patch
30         src_ruby_config.patch
31         )
32 noextract=('[source].zip')
34 md5sums=('d66ff132c6149c22afdbbd3e8de9d661'
35          'c67b0e7ab390413a742f54ed9b7c6754'
36          'd95cdcc3576810b7b3d039d70239c200'
37          'e69d8bd07e41e08144dab2786fde2ad1') #gerate with 'makepkg -g'
39 build() {
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
44   cd "$srcdir/DodontoF"
45   chmod 755 DodontoFServer.rb WebCameraCaptureImageUploader.rb saveData imageUploadSpace imageUploadSpace/smallImages saveDataTempSpace fileUploadSpace replayDataUploadSpace
46   chmod 666 log.txt log.txt.0
47   cd ..
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: