summaryrefslogtreecommitdiff
path: root/pcr/odamex/PKGBUILD
blob: da26762d0bda157999ac303930e394335d875222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer (AUR): Mikael Eriksson <mikael_eriksson@miffe.org>
# Contributor (AUR): Pol Marcet Sardà <polmarcetsarda@gmail.com>
# Contributor (AUR): Thomas Dziedzic < gostrc at gmail >
# Contributor (AUR): Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
# Contributor (AUR): Curtis Smith <kman922002@gmail.com>

pkgname=odamex
pkgver=0.8.1
pkgrel=1
pkgdesc='A free client/server multiplayer engine for the classic FPS Doom.'
arch=('armv7h' 'i686' 'x86_64')
url='http://odamex.net/'
license=('GPL')
depends=('sdl_mixer>=1.2.6' 'wxgtk' 'miniupnpc' 'portmidi')
makedepends=('cmake')
optdepends=('timidity++: Required for music')
source=("http://downloads.sourceforge.net/odamex/odamex-src-${pkgver}.tar.gz"
        0001-Fix-WAD-path.patch)
sha256sums=('31704a45eae3a833dcc0c4c840444cda0ba88a2fc9b6115b612e31a6dcc48bfb'
            'c4ce4072515c7dbfe65d1829a317d21b5f1091e04997761cdfee345a60141638')

prepare() {
  cd $pkgname-src-$pkgver
  patch --forward --strip=1 --input="${srcdir}/0001-Fix-WAD-path.patch"
}

build() {
  cd $pkgname-src-${pkgver}
  cmake -DCMAKE_BUILD_TYPE=Release                              \
        -DCMAKE_INSTALL_PREFIX=/usr                             \
        .
  make
}

package() {
  cd $pkgname-src-${pkgver}
  make DESTDIR=$pkgdir install
  # Use system headers.
  rm -r "$pkgdir/usr/include/miniupnpc/"
}