Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Jonathan Vasquez <deleted_to_prevent_spam@gmail.com>
- # Note: When making with makepkg s, it might show the following:
- # WARNING: Package contains reference to $srcdir
- # I researched it and Arch members said it may or may not be harmful.
- # I noticed some configuration files having the $pkgdir name in them (i.e /etc/bnetd.conf)
- pkgname=pvpgn
- pkgver=199.r577
- pkgrel=1
- pkgdesc="A bnetd based gaming network server emulation project"
- arch=('i686' 'x86_64')
- url="http://pvpgn.berlios.de/"
- license=('GPL')
- depends=('cmake')
- #depends=('cmake' 'mysql')
- changelog=
- source=(http://download.berlios.de/pvpgn/$pkgname-$pkgver.tar.gz)
- md5sums=('e1aee22d7d8c51ea01e0a7a88bb9dfc9')
- build() {
- cd "$srcdir/$pkgname-$pkgver"
- #Without MySQL support
- # Disabled. cmake/pvpgn love to ignore the SYSCONF_INSTALL_DIR variable, and thus the conf files can't be placed under
- # /etc/pvpgn as the ArchWiki recommend. If anyone wants to try to fix that, go ahead.
- # The conf files will be placed directly inside of /usr/etc
- #cmake -DBIN_INSTALL_DIR=$pkgdir/usr/bin -DSBIN_INSTALL_DIR=$pkgdir/usr/sbin -DSYSCONF_INSTALL_DIR=$pkgdir/etc/pvpgn
- #-DMAN_INSTALL_DIR=$pkgdir/usr/share/man -DLOCALSTATE_INSTALL_DIR=$pkgdir/usr/var .
- cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/usr" .
- # With MySQL support
- # If you uncomment the line below, make sure to uncomment the
- # depends line above that has mysql as a dependency
- # cmake -D CMAKE_INSTALL_PREFIX="$pkgdir/usr" -D WITH_MYSQL=true .
- # Add -j flag for number of jobs
- make
- }
- package() {
- cd "$srcdir/$pkgname-$pkgver"
- make prefix="$pkgdir/usr" install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement