updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / pvpgn / PKGBUILD
blobd75b80db4378aa529a86168f44ffbb656c3a2654
1 # Maintainer: Jonathan Vasquez <jvasquez1011@gmail.com>
3 pkgname=pvpgn
4 pkgver=1.8.5
5 pkgrel=1
6 pkgdesc="A bnetd based gaming network server emulation project"
7 arch=('i686' 'x86_64')
8 url="http://pvpgn.berlios.de/"
9 license=('GPL')
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')
18 build() {
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
27   # With MySQL Support
28     #./configure --prefix=/usr \
29         #--sysconfdir=/etc/pvpgn \
30         #--localstatedir=/var/games/pvpgn \
31         #--mandir=/usr/share/man \
32         #--with-mysql
34   # With PostgreSQL Support
35     #./configure --prefix=/usr \
36         #--sysconfdir=/etc/pvpgn \
37         #--localstatedir=/var/games/pvpgn \
38         #--mandir=/usr/share/man \
39         #--with-pgsql
41   make
44 package() {
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