Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

FearedBliss

By: a guest on Feb 25th, 2011  |  syntax: Bash  |  size: 1.63 KB  |  hits: 221  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Jonathan Vasquez <deleted_to_prevent_spam@gmail.com>
  2.  
  3. # Note: When making with makepkg s, it might show the following:
  4. # WARNING:  Package contains reference to $srcdir
  5. # I researched it and Arch members said it may or may not be harmful.
  6. # I noticed some configuration files having the $pkgdir name in them (i.e /etc/bnetd.conf)
  7.  
  8. pkgname=pvpgn
  9. pkgver=199.r577
  10. pkgrel=1
  11. pkgdesc="A bnetd based gaming network server emulation project"
  12. arch=('i686' 'x86_64')
  13. url="http://pvpgn.berlios.de/"
  14. license=('GPL')
  15. depends=('cmake')
  16. #depends=('cmake' 'mysql')
  17. changelog=
  18. source=(http://download.berlios.de/pvpgn/$pkgname-$pkgver.tar.gz)
  19. md5sums=('e1aee22d7d8c51ea01e0a7a88bb9dfc9')
  20.  
  21. build() {
  22.   cd "$srcdir/$pkgname-$pkgver"
  23.  
  24.   #Without MySQL support
  25.  
  26.   # Disabled. cmake/pvpgn love to ignore the SYSCONF_INSTALL_DIR variable, and thus the conf files can't be placed under
  27.   # /etc/pvpgn as the ArchWiki recommend. If anyone wants to try to fix that, go ahead.
  28.   # The conf files will be placed directly inside of /usr/etc
  29.   #cmake -DBIN_INSTALL_DIR=$pkgdir/usr/bin -DSBIN_INSTALL_DIR=$pkgdir/usr/sbin -DSYSCONF_INSTALL_DIR=$pkgdir/etc/pvpgn
  30.   #-DMAN_INSTALL_DIR=$pkgdir/usr/share/man -DLOCALSTATE_INSTALL_DIR=$pkgdir/usr/var .
  31.  
  32.   cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/usr" .
  33.  
  34.   # With MySQL support
  35.   # If you uncomment the line below, make sure to uncomment the
  36.   # depends line above that has mysql as a dependency
  37.   # cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/usr" -D WITH_MYSQL=true .
  38.  
  39.   # Add -j flag for number of jobs
  40.   make
  41. }
  42.  
  43. package() {
  44.   cd "$srcdir/$pkgname-$pkgver"
  45.  
  46.   make prefix="$pkgdir/usr" install
  47. }