summaryrefslogtreecommitdiff
path: root/pcr/odamex/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/odamex/PKGBUILD')
-rw-r--r--pcr/odamex/PKGBUILD54
1 files changed, 25 insertions, 29 deletions
diff --git a/pcr/odamex/PKGBUILD b/pcr/odamex/PKGBUILD
index 9040e33cd..da26762d0 100644
--- a/pcr/odamex/PKGBUILD
+++ b/pcr/odamex/PKGBUILD
@@ -1,45 +1,41 @@
-# Maintainer (Arch): Mikael Eriksson <mikael_eriksson@miffe.org>
-# Contributor (Arch): Thomas Dziedzic < gostrc at gmail >
-# Contributor (Arch): Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
-# Contributor (Arch): Curtis Smith <kman922002@gmail.com>
+# 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.7.0
-pkgrel=2
+pkgver=0.8.1
+pkgrel=1
pkgdesc='A free client/server multiplayer engine for the classic FPS Doom.'
-arch=('i686' 'x86_64')
+arch=('armv7h' 'i686' 'x86_64')
url='http://odamex.net/'
license=('GPL')
-depends=('sdl_mixer>=1.2.6' 'wxgtk')
+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.bz2"
+source=("http://downloads.sourceforge.net/odamex/odamex-src-${pkgver}.tar.gz"
0001-Fix-WAD-path.patch)
-md5sums=('312769b98bbdb450454e4676b2c55986'
- 'bb32f96f8b78f71456ae758b48e3fbe1')
+sha256sums=('31704a45eae3a833dcc0c4c840444cda0ba88a2fc9b6115b612e31a6dcc48bfb'
+ 'c4ce4072515c7dbfe65d1829a317d21b5f1091e04997761cdfee345a60141638')
-build() {
- cd odamex-src-${pkgver}
-
- patch -p1 -i $srcdir/0001-Fix-WAD-path.patch
+prepare() {
+ cd $pkgname-src-$pkgver
+ patch --forward --strip=1 --input="${srcdir}/0001-Fix-WAD-path.patch"
+}
- cmake .
+build() {
+ cd $pkgname-src-${pkgver}
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ .
make
}
package() {
- cd odamex-src-${pkgver}
-
- install -Dm755 client/odamex "$pkgdir/usr/bin/odamex"
- install -Dm755 server/odasrv "$pkgdir/usr/bin/odasrv"
- install -Dm755 odalaunch/odalaunch "$pkgdir/usr/bin/odalaunch"
- install -Dm644 odamex.wad "$pkgdir/usr/share/odamex/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 media/icon_odalaunch_96.png "$pkgdir/usr/share/pixmaps/odalaunch.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"
- install -Dm644 installer/arch/odalaunch.desktop "$pkgdir/usr/share/applications/odalaunch.desktop"
+ cd $pkgname-src-${pkgver}
+ make DESTDIR=$pkgdir install
+ # Use system headers.
+ rm -r "$pkgdir/usr/include/miniupnpc/"
}
-# vim:set ts=2 sw=2 et: