summaryrefslogtreecommitdiff
path: root/community/freeorion
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-17 00:45:16 -0800
committerroot <root@rshg054.dnsready.net>2013-02-17 00:45:16 -0800
commitc6f4cd18ab706868be0eff10327a0dcd58cecdf3 (patch)
treede3914332965ed3485e383ba0da41ef1b1c8c427 /community/freeorion
parent4a4f6be8604aa35bdc81ae29d86b07dc8aea0c5c (diff)
Sun Feb 17 00:45:00 PST 2013
Diffstat (limited to 'community/freeorion')
-rw-r--r--community/freeorion/PKGBUILD43
1 files changed, 22 insertions, 21 deletions
diff --git a/community/freeorion/PKGBUILD b/community/freeorion/PKGBUILD
index 09b6154c9..726cd7ec1 100644
--- a/community/freeorion/PKGBUILD
+++ b/community/freeorion/PKGBUILD
@@ -1,13 +1,14 @@
-# $Id: PKGBUILD 83429 2013-01-31 23:07:12Z arodseth $
+# $Id: PKGBUILD 84326 2013-02-16 16:16:27Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Elmo Todurov <todurov@gmail.com>
# Contributor: guini <sidtrun@googlemail.com>
-# Contributor: Forrest Loomis <cybercyst _ at _ gmail dot com>
+# Contributor: Forrest Loomis <cybercyst@gmail.com>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: fana-m <geminin@gmx.net>
pkgname=freeorion
pkgver=0.4.1
-pkgrel=6
+pkgrel=7
pkgdesc='Turn-based galactic conquest game inspired by Master of Orion'
arch=('x86_64' 'i686')
url='http://www.freeorion.org/'
@@ -40,43 +41,43 @@ build() {
#msg2 'Looking up revision from version number...'
#_releaserevision=`curl --progress-bar -o- ${url}index.php/Compile | grep "$pkgver" | cut -d':' -f2 | cut -d' ' -f10 | tail -1`
- #msg2 "The revision for the latest official release is $_releaserevision"
+ #msg2 'The revision for the latest official release is $_releaserevision"
## _revision=$_releaserevision
- msg2 "Compiling with revision $_revision"
+ msg2 'Compiling with revision $_revision'
- msg2 "Checking out svn revision $_revision..."
+ msg2 'Checking out svn revision $_revision...'
if [[ -d "$pkgname/.svn" ]]; then
(cd "$pkgname" && svn up -r "$_revision")
else
svn co "$_svnrepo" --config-dir ./ -r "$_revision" "$pkgname"
fi
- msg2 "Setting up build directory..."
+ msg2 'Setting up build directory...'
rm -rf "$srcdir/$pkgname-build"
cp -r "$srcdir/$pkgname" "$srcdir/$pkgname-build"
cd "$srcdir/$pkgname-build"
- msg2 "CMake/Python fix..."
+ msg2 'CMake/Python fix...'
patch -N -p1 -i "$srcdir/cmake_python.patch"
- msg2 "Generating makefiles..."
+ msg2 'Generating makefiles...'
cmake \
-DPYTHON_INCLUDE_DIR:PATH="/usr/include/python$_pyversion" \
-DPYTHON_LIBRARY:FILEPATH="/usr/lib/libpython$_pyversion.so" \
-G "Unix Makefiles"
- msg2 "GLU fix..."
+ msg2 'GLU fix...'
setconf CMakeCache.txt CMAKE_CXX_FLAGS:STRING \
"'-march=x86-64 -mtune=generic -O2 -fno-var-tracking -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -lGL -lGLU '"
- #msg2 "Boost fix..."
+ #msg2 'Boost fix...'
#sed -i 's:TIME_UTC:TIME_UTC_:' util/MultiplayerCommon.cpp
- msg2 "Compiling..."
+ msg2 'Compiling...'
make -j1
- msg2 "OGRE fix..."
+ msg2 'OGRE fix...'
sed -i 's:PluginFolder=.:PluginFolder=/usr/lib/OGRE/:g' \
"$srcdir/$pkgname-build/ogre_plugins.cfg"
}
@@ -84,38 +85,38 @@ build() {
package() {
cd "$srcdir/$pkgname-build"
- msg2 "Packaging documentation..."
+ msg2 'Packaging documentation...'
install -Dm644 loki_setup/README.txt \
"$pkgdir/usr/share/doc/$pkgname/README.txt"
- msg2 "Packaging binaries..."
+ msg2 'Packaging binaries...'
install -Dm 755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/freeorion"
install -Dm 755 freeorion "$pkgdir/usr/bin/freeorion.elf"
install -Dm 755 freeorionca "$pkgdir/usr/bin/freeorionca"
install -Dm 755 freeoriond "$pkgdir/usr/bin/freeoriond"
- msg2 "Packaging data..."
+ msg2 'Packaging data...'
mkdir -p "$pkgdir/usr/share/$pkgname" "$pkgdir/usr/lib/$pkgname"
cp -r default "$pkgdir/usr/share/$pkgname"
- install -Dm 644 OISInput.cfg "$pkgdir/usr/share/OISInput.cfg"
+ install -Dm 644 OISInput.cfg "$pkgdir/usr/share/$pkgname/OISInput.cfg"
- msg2 "Packaging license..."
+ msg2 'Packaging license...'
install -Dm 644 default/COPYING \
"$pkgdir/usr/share/licenses/$pkgname/COPYING"
cd "$srcdir"
- msg2 "Packaging icon and shortcut..."
+ msg2 'Packaging icon and shortcut...'
install -Dm 644 "$pkgname.png" \
"$pkgdir/usr/share/pixmaps/freeorion.png"
install -Dm 644 "$pkgname.desktop" \
"$pkgdir/usr/share/applications/freeorion.desktop"
- msg2 "Packaging OGRE plugins configuration..."
+ msg2 'Packaging OGRE plugins configuration...'
install -Dm 644 "$srcdir/$pkgname-build/ogre_plugins.cfg" \
"$pkgdir/usr/share/freeorion/ogre_plugins.cfg"
- msg2 "Cleaning up..."
+ msg2 'Cleaning up...'
find "$pkgdir" -name ".svn" -print0 | xargs -0 rm -rf
}