Skip to content

Instantly share code, notes, and snippets.

@unlimitedbacon
Created June 10, 2014 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unlimitedbacon/76f5796fbec36602b63f to your computer and use it in GitHub Desktop.
Save unlimitedbacon/76f5796fbec36602b63f to your computer and use it in GitHub Desktop.
fs2_open PKGBUILD
# Maintainer: Jacob Emmert-Aronson <jacob at mlaronson dot com>
# Contributor: Rene Schoebel <schoebel.r at gmail dot com>
# Contributor: ZekeSulastin <zekesulastin@gmail.com>
# Contributor: Mr_Robotic_Evil <mr.robotic.evil@googlemail.com>
# Contributor: Lone_Wolf <lonewolf@xs4all.nl>
# This PKGBUILD only generates the engine binary.
# The retail Freespace 2 data is required to play the
# original game and most mods. You can use a non-AUR/pacman'd
# copy, but you'll be on your own as far as running the game
# and mods are concerned.
# Check the AUR package 'fs2_open-data' for details.
pkgname=fs2_open
pkgver=3.7.2_RC3
_pkgver=3_7_2_RC3 # Upstream's url/dirs ...
pkgrel=1
epoch=1
pkgdesc="An enhancement of the Freespace 2 engine"
url="http://scp.indiegames.us"
arch=('i686' 'x86_64')
license=('custom:fs2_open')
depends=('libjpeg' 'libpng' 'libtheora' 'libvorbis' 'lua51' 'openal' 'sdl' 'glu' 'jansson')
optdepends=('fs2_open-data: retail game data for Freespace 2'
'fs2_open-mediavps: extensive audiovisual enhancements'
'wxlauncher: launcher for game and mods')
conflicts=('fs2_open_3614')
replaces=('fs2_open_3614')
install=$pkgname.install
changelog=$pkgname.changelog
source=(http://swc.fs2downloads.com/builds/fs2_open_${_pkgver}_src.tgz
'osapi_unix.patch'
'increase_joy_buttons_fixed.patch'
'fs2_open'
'options'
'fs2_open.changelog')
md5sums=('ca014d2ef501e8c4a6a8a0ac446d8942'
'2f53634eb0d0a3ee0c088bb16486f19d'
'34972d7ccf083aae37088e663dd98eee'
'2247388b476f0748e86794aa4ce3a867'
'c62e14793f1ad18953ce29776bdbe521'
'eeeef2b88e453f0ba3f1f91747553ee2')
build()
{
cd "$srcdir/${pkgname}_${_pkgver}"
# Changes default video settings for better mod compatability
patch -Np0 -i "$srcdir/osapi_unix.patch"
# Increases hard limit of joystick buttons for better use with HOTAS etc.
patch -Np0 -i "$srcdir/increase_joy_buttons_fixed.patch"
# Add --enable-debug to make a debug build. These are NOT meant for general play;
# only make a debug build if generating logs/bugreports.
LDFLAGS="-l:liblua.so.5.1 $LDFLAGS" CXXFLAGS="-I/usr/include/lua5.1 $CXXFLAGS" ./autogen.sh --enable-speech
make
}
package()
{
cd "$srcdir/${pkgname}_${_pkgver}"
install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -D -m644 ../options "$pkgdir/usr/share/$pkgname/options"
if [[ -x code/fs2_open_$pkgver ]]; then
install -D -m755 code/fs2_open_$pkgver "$pkgdir/opt/$pkgname/fs2_open_$pkgver"
else
install -D -m755 code/fs2_open_${pkgver}_DEBUG "$pkgdir/opt/$pkgname/fs2_open_${pkgver}_DEBUG"
fi
install -D -m755 "$srcdir/fs2_open" "$pkgdir/usr/bin/fs2_open"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment