diff options
author | Mikael Eriksson | 2015-06-08 15:55:12 +0200 |
---|---|---|
committer | Mikael Eriksson | 2015-06-08 15:55:12 +0200 |
commit | a4702f1b20068986a56dc06d34ea7eb7ec9d08d3 (patch) | |
tree | 7786fba4a19d93611fb297a30d92f5c295c7b5a8 | |
download | aur-a4702f1b20068986a56dc06d34ea7eb7ec9d08d3.tar.gz |
Imported
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | 0001-Fix-WAD-path.patch | 25 | ||||
-rw-r--r-- | PKGBUILD | 45 |
3 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7a3b39fe73c6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = odamex + pkgdesc = A free client/server multiplayer engine for the classic FPS Doom. + pkgver = 0.7.0 + pkgrel = 2 + url = http://odamex.net/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + depends = sdl_mixer>=1.2.6 + depends = wxgtk + optdepends = timidity++: Required for music + source = http://downloads.sourceforge.net/odamex/odamex-src-0.7.0.tar.bz2 + source = 0001-Fix-WAD-path.patch + md5sums = 312769b98bbdb450454e4676b2c55986 + md5sums = bb32f96f8b78f71456ae758b48e3fbe1 + +pkgname = odamex + diff --git a/0001-Fix-WAD-path.patch b/0001-Fix-WAD-path.patch new file mode 100644 index 000000000000..00926cc6252e --- /dev/null +++ b/0001-Fix-WAD-path.patch @@ -0,0 +1,25 @@ +From 02dcf788ba288ddebb7164b86aef22e0e5fbf96a Mon Sep 17 00:00:00 2001 +From: Mikael Eriksson <mikael_eriksson@miffe.org> +Date: Mon, 17 Dec 2012 12:04:02 +0100 +Subject: [PATCH] Fix WAD path + +--- + common/d_main.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/common/d_main.cpp b/common/d_main.cpp +index a31cb62..4abf6be 100644 +--- a/common/d_main.cpp ++++ b/common/d_main.cpp +@@ -490,6 +490,8 @@ static std::string BaseFileSearch(std::string file, std::string ext = "", std::s + dirs.push_back(progdir);
+
+ D_AddSearchDir(dirs, Args.CheckValue("-waddir"), separator);
++ D_AddSearchDir(dirs, "/usr/share/odamex", separator);
++ D_AddSearchDir(dirs, "/usr/share/doom", separator);
+ D_AddSearchDir(dirs, getenv("DOOMWADDIR"), separator);
+ D_AddSearchDir(dirs, getenv("DOOMWADPATH"), separator);
+ D_AddSearchDir(dirs, getenv("HOME"), separator);
+-- +1.8.0.2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..05a9b3558459 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org> +# Contributor: Curtis Smith <kman922002@gmail.com> + +pkgname=odamex +pkgver=0.7.0 +pkgrel=2 +pkgdesc='A free client/server multiplayer engine for the classic FPS Doom.' +arch=('i686' 'x86_64') +url='http://odamex.net/' +license=('GPL') +depends=('sdl_mixer>=1.2.6' 'wxgtk') +makedepends=('cmake') +optdepends=('timidity++: Required for music') +source=("http://downloads.sourceforge.net/odamex/odamex-src-${pkgver}.tar.bz2" + 0001-Fix-WAD-path.patch) +md5sums=('312769b98bbdb450454e4676b2c55986' + 'bb32f96f8b78f71456ae758b48e3fbe1') + +build() { + cd odamex-src-${pkgver} + + patch -p1 -i $srcdir/0001-Fix-WAD-path.patch + + cmake . + 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" +} + +# vim:set ts=2 sw=2 et: |