1 # Maintainer: Jonathan Vasquez <jvasquez1011@gmail.com>
6 pkgdesc="A bnetd based gaming network server emulation project"
8 url="http://pvpgn.berlios.de/"
10 #depends=('mysql') # Uncomment for MySQL support
11 #depends=('postgresql') # Uncomment for PostgreSQL support
12 optdepends=('mysql: Recompile with this enabled in PKGBUILD for MySQL support'
13 'postgresql: Recompile with this enabled in PKGBUILD for PostgreSQL support')
14 conflicts=('pvpgn' 'pvpgn-server')
15 source=(http://download.berlios.de/pvpgn/${pkgname}-${pkgver}.tar.bz2)
16 md5sums=('0a8353c26f8af0272208664a3ce0f830')
19 cd "${srcdir}/${pkgname}-${pkgver}/src"
21 # Without MySQL Support
22 ./configure --prefix=/usr \
23 --sysconfdir=/etc/pvpgn \
24 --localstatedir=/var/games/pvpgn \
25 --mandir=/usr/share/man
28 #./configure --prefix=/usr \
29 #--sysconfdir=/etc/pvpgn \
30 #--localstatedir=/var/games/pvpgn \
31 #--mandir=/usr/share/man \
34 # With PostgreSQL Support
35 #./configure --prefix=/usr \
36 #--sysconfdir=/etc/pvpgn \
37 #--localstatedir=/var/games/pvpgn \
38 #--mandir=/usr/share/man \
45 cd "${srcdir}/${pkgname}-${pkgver}/src"
47 make DESTDIR="${pkgdir}" install
49 # Fix /var/games and /var/games/pvpgn permissions from 755 to 775
50 chmod 775 ${pkgdir}/var/games
51 chmod -R 775 ${pkgdir}/var/games/pvpgn