PKGBUILD 1.4 KB
Newer Older
1 2 3 4 5 6
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>

pkgname=odamex
7
pkgver=0.6.2
8
pkgrel=2
9
pkgdesc='A free client/server multiplayer engine for the classic FPS Doom.'
10
arch=('x86_64')
11 12
url='http://odamex.net/'
license=('GPL')
13 14
depends=('portmidi' 'sdl_mixer')
makedepends=('cmake')
Giuseppe's avatar
Giuseppe committed
15
categories=('games')
16
install=install.sh
17
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-src-$pkgver.tar.bz2")
18
md5sums=('02251fb367de5cefebba0895bb6ec6e0')
19 20 21 22

build() {
  cd $srcdir/$pkgname-src-$pkgver

23 24 25 26
  sed \
    -e 's|getenv("DOOMWADPATH")|"/usr/share/doom"|g' \
    -i client/src/cl_download.cpp \
    -i common/d_main.cpp
27

28 29 30 31 32 33
  mkdir -p build && cd build
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    ..
  make
34 35 36
}

package() {
37 38 39 40 41
  cd $srcdir/$pkgname-src-$pkgver/build
#  make DESTDIR=$pkgdir install

  install -Dm755 client/odamex $pkgdir/usr/bin/odamex
  install -Dm755 server/odasrv $pkgdir/usr/bin/odasrv
42

43
  cd ..
44 45 46 47 48 49
  install -Dm644 odamex.wad $pkgdir/usr/share/doom/odamex.wad
  install -Dm644 media/icon_odamex_96.png $pkgdir/usr/share/pixmaps/odamex.png
  install -Dm644 media/icon_odasrv_96.png $pkgdir/usr/share/pixmaps/odasrv.png
  install -Dm644 installer/arch/odamex.desktop $pkgdir/usr/share/applications/odamex.desktop
  install -Dm644 installer/arch/odasrv.desktop $pkgdir/usr/share/applications/odasrv.desktop
}