1 # Contributor: Henri Häkkinen <henuxd@gmail.com>
2 # Contributor: Gianni Vialetto <g [dot] vialetto [at] gmail [dot] com>
4 # Contributor: Volodymyr Bezobiuk <volodymyr.bezobiuk at railsware [point] com>
5 # add actual gather the build stuff into $pkgdir, add rc.d script
6 # add build.sh patch, improve build for shm (clone original source into $startdir not to $srcdir)
11 pkgdesc="Free AJAX Push Engine server"
12 arch=('i686' 'x86_64')
13 url="http://www.ape-project.org"
15 makedepends=('git python zip')
16 provides=('ape-server')
19 _gitroot="https://github.com/APE-Project/APE_Server.git"
21 _builddir="${_gitname}-build"
26 md5sums=(a01ac05bdeebc1796c26b32b5b593738
27 aab4c748418453e96355816f190a8c69)
31 msg "Connecting to GIT server...."
33 if [ -d $_gitname ] ; then
34 cd $_gitname && git pull origin
35 msg "The local files are updated."
40 msg "GIT checkout done or server timeout"
41 msg "Starting make..."
43 rm -rf "$srcdir/$_builddir"
44 git clone "$startdir/$_gitname" "$srcdir/$_builddir"
45 cd "$srcdir/$_builddir"
47 #for some reason on my box it said something about run make again or so... here's patch
48 git apply < $startdir/build.sh.patch
51 msg "Building package"
53 install -m 755 -d ${pkgdir}/etc/ape/
54 install -m 644 ${srcdir}/${_builddir}/bin/ape.conf ${pkgdir}/etc/ape/ape.conf
55 for i in inlinepush javascript proxy; do
56 install -m 644 ${srcdir}/${_builddir}/modules/conf/${i}.conf ${pkgdir}/etc/ape/${i}.conf
58 install -m 755 -d ${pkgdir}/usr/bin/
59 install -m 755 ${srcdir}/${_builddir}/bin/aped ${pkgdir}/usr/bin/aped
60 install -m 755 -d ${pkgdir}/usr/lib/ape/
61 install -m 755 ${srcdir}/${_builddir}/modules/lib/libmod_spidermonkey.so ${pkgdir}/usr/lib/ape/libmod_spidermonkey.so
62 install -m 755 -d ${pkgdir}/var/ape/
63 cp -R ${srcdir}/${_builddir}/scripts/* ${pkgdir}/var/ape/
65 install -m 755 -d ${pkgdir}/etc/rc.d/
66 install -m 755 ${startdir}/aped ${pkgdir}/etc/rc.d/aped