summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Teibes2014-03-16 03:06:16 +0100
committerCarsten Teibes2014-03-16 03:06:16 +0100
commit59baa223ecbdc716a924f36bf9a8a8a41c2cb077 (patch)
tree8f815554a471fdfd86a9c2d7a9892d0756752fe0
downloadaur-59baa223ecbdc716a924f36bf9a8a8a41c2cb077.tar.gz
[add] alephone 1.1_20140104
-rw-r--r--.SRCINFO39
-rw-r--r--PKGBUILD63
-rw-r--r--alephone-ffmpeg-add-magic-number.diff15
-rw-r--r--alephone-remove-deprecated-r5002.diff12
4 files changed, 129 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bcd66dabf95
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,39 @@
+pkgbase = alephone
+ pkgdesc = A free, enhanced port of the classic FPS "Marathon 2" by Bungie Software
+ pkgver = 1.1_20140104
+ pkgrel = 1
+ url = http://marathon.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = boost
+ makedepends = lua
+ depends = sdl_ttf
+ depends = sdl_image
+ depends = sdl_net
+ depends = libmad
+ depends = glu
+ depends = mesa
+ depends = zziplib
+ depends = ffmpeg
+ depends = ffmpeg-compat
+ optdepends = alephone-emr: community-made scenario
+ optdepends = alephone-eternalx: community-made scenario
+ optdepends = alephone-evil: community-made scenario
+ optdepends = alephone-infinity: original data for Marathon Infinity
+ optdepends = alephone-marathon: M1A1 data converted for AlephOne
+ optdepends = alephone-marathon2: original data for Marathon 2: Durandal
+ optdepends = alephone-red: community-made scenario
+ optdepends = alephone-rubiconx: community-made scenario
+ optdepends = alephone-tempus_irae: community-made scenario
+ source = http://downloads.sourceforge.net/marathon/AlephOne-20140104.tar.bz2
+ source = http://downloads.sourceforge.net/marathon/README.md
+ source = alephone-remove-deprecated-r5002.diff
+ source = alephone-ffmpeg-add-magic-number.diff
+ sha256sums = 7f7d35c1d99cddd7cd0b47d3e4b84311373b04c60402ce86e9d85c36dfbaabcd
+ sha256sums = b2b01a3120b61e56cecb6409585118a5e907171fef0e4dc25afaf13fcea5c5d5
+ sha256sums = b06a57cffbf5ae3df916de1baa457e53c78a7ed5af22e7e330da3fc405602351
+ sha256sums = cd0f169ea4a79d4b782ee0c03c35b254d947b8fc6af88cc5563d71f864b891f8
+
+pkgname = alephone
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1ea97977890
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,63 @@
+# Maintainer: carstene1ns <url/mail: arch carsten-teibes de>
+# Contributor: Marcin Skory <armitage at q84fh dot net>
+# Contributor: Arkham <arkham at archlinux dot us>
+# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
+# Contributor: Jacek Poplawski <jacekpoplawski__gmail>
+
+pkgname=alephone
+_pkgdate=20140104
+pkgver=1.1_$_pkgdate
+pkgrel=1
+pkgdesc='A free, enhanced port of the classic FPS "Marathon 2" by Bungie Software'
+arch=('i686' 'x86_64')
+url="http://marathon.sourceforge.net/"
+license=('GPL3')
+depends=('sdl_ttf' 'sdl_image' 'sdl_net' 'libmad' 'glu' 'mesa' 'zziplib'
+ 'ffmpeg' 'ffmpeg-compat')
+# todo: figure out, if they are all compatible
+optdepends=('alephone-emr: community-made scenario'
+ 'alephone-eternalx: community-made scenario'
+ 'alephone-evil: community-made scenario'
+ 'alephone-infinity: original data for Marathon Infinity'
+ 'alephone-marathon: M1A1 data converted for AlephOne'
+ 'alephone-marathon2: original data for Marathon 2: Durandal'
+ 'alephone-red: community-made scenario'
+ 'alephone-rubiconx: community-made scenario'
+ 'alephone-tempus_irae: community-made scenario')
+makedepends=('boost' 'lua')
+source=("http://downloads.sourceforge.net/marathon/AlephOne-$_pkgdate.tar.bz2"
+ "http://downloads.sourceforge.net/marathon/README.md"
+ "$pkgname-remove-deprecated-r5002.diff"
+ "$pkgname-ffmpeg-add-magic-number.diff")
+sha256sums=('7f7d35c1d99cddd7cd0b47d3e4b84311373b04c60402ce86e9d85c36dfbaabcd'
+ 'b2b01a3120b61e56cecb6409585118a5e907171fef0e4dc25afaf13fcea5c5d5'
+ 'b06a57cffbf5ae3df916de1baa457e53c78a7ed5af22e7e330da3fc405602351'
+ 'cd0f169ea4a79d4b782ee0c03c35b254d947b8fc6af88cc5563d71f864b891f8')
+
+prepare() {
+ cd AlephOne-$_pkgdate
+
+ # add removed ffmpeg define
+ patch -Np1 < ../$pkgname-ffmpeg-add-magic-number.diff
+ # remove old setting
+ patch -Np1 < ../$pkgname-remove-deprecated-r5002.diff
+
+ # this is a leftover from old version (needed?)
+ #sed "s|PACKAGE='AlephOne'|PACKAGE='alephone'|g" -i configure
+}
+
+build() {
+ cd AlephOne-$_pkgdate
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd AlephOne-$_pkgdate
+
+ make DESTDIR="$pkgdir/" install
+ # docs
+ install -Dm644 ../README.md "$pkgdir"/usr/share/doc/$pkgname/README-1.1.md
+ install -m644 README docs/*.html "$pkgdir"/usr/share/doc/$pkgname
+}
diff --git a/alephone-ffmpeg-add-magic-number.diff b/alephone-ffmpeg-add-magic-number.diff
new file mode 100644
index 00000000000..d23c3104b91
--- /dev/null
+++ b/alephone-ffmpeg-add-magic-number.diff
@@ -0,0 +1,15 @@
+diff -rupN AlephOne-20140104/Source_Files/FFmpeg/SDL_ffmpeg.c AlephOne-20140104.new/Source_Files/FFmpeg/SDL_ffmpeg.c
+--- AlephOne-20140104/Source_Files/FFmpeg/SDL_ffmpeg.c 2013-07-05 02:33:29.000000000 +0200
++++ AlephOne-20140104.new/Source_Files/FFmpeg/SDL_ffmpeg.c 2014-03-16 01:53:19.327213212 +0100
+@@ -48,6 +48,11 @@ extern "C"
+ }
+ #endif
+
++/* set magic number for 1 second of 48khz 32bit audio (removed from upstream) */
++#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
++#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000
++#endif
++
+ #include "SDL_ffmpeg.h"
+
+ #ifdef MSVC
diff --git a/alephone-remove-deprecated-r5002.diff b/alephone-remove-deprecated-r5002.diff
new file mode 100644
index 00000000000..bae81dd7968
--- /dev/null
+++ b/alephone-remove-deprecated-r5002.diff
@@ -0,0 +1,12 @@
+diff -rupN AlephOne-20140104/Source_Files/FFmpeg/Movie.cpp AlephOne-20140104.new/Source_Files/FFmpeg/Movie.cpp
+--- AlephOne-20140104/Source_Files/FFmpeg/Movie.cpp 2014-01-04 03:19:57.000000000 +0100
++++ AlephOne-20140104.new/Source_Files/FFmpeg/Movie.cpp 2014-03-16 01:43:32.030011019 +0100
+@@ -491,7 +491,7 @@ bool Movie::Setup()
+
+ // tuning options
+ int aq = graphics_preferences->movie_export_audio_quality;
+- audio_stream->codec->global_quality = audio_stream->quality = FF_QP2LAMBDA * (aq / 10);
++ audio_stream->codec->global_quality = FF_QP2LAMBDA * (aq / 10);
+ audio_stream->codec->flags |= CODEC_FLAG_QSCALE;
+
+ // find correct sample format