mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
91 lines
2.7 KiB
Bash
91 lines
2.7 KiB
Bash
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
|
|
# Contributor: Slash <demodevil5[at]yahoo[dot]com>
|
|
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
|
|
|
|
pkgname=tremulous
|
|
pkgver=1.1.0
|
|
pkgrel=5
|
|
pkgdesc="A completely free online team based FPS/RTS hybrid game based on the ioquake3 engine."
|
|
url="http://tremulous.net/"
|
|
license=("GPL")
|
|
arch=('i686' 'x86_64')
|
|
depends=('sdl' 'openal>=1.7.411')
|
|
makedepends=('unzip')
|
|
conflicts=()
|
|
provides=()
|
|
install=
|
|
source=('tremulous.launcher' 'tremded.launcher' 'tremulous.desktop' \
|
|
"http://downloads.sourceforge.net/tremulous/$pkgname-$pkgver.zip")
|
|
md5sums=('4bc8841ebfbb2eae54c24bbc8c6be616' '4bc8841ebfbb2eae54c24bbc8c6be616'\
|
|
'9974bde01b95b6d967beb76c31c0e742' '3df5f7565571fb9524656308347bce1b')
|
|
|
|
build()
|
|
{
|
|
# Move Source and Extract
|
|
cd $startdir/src
|
|
mv tremulous/tremulous-$pkgver-src.tar.gz .
|
|
tar zxvf tremulous-$pkgver-src.tar.gz
|
|
|
|
# Remove Junk from Game Directory
|
|
cd $startdir/src/tremulous
|
|
rm {CC,COPYING,ChangeLog,GPL,tremulous.exe,tremded.x86,tremulous.x86}
|
|
|
|
# Move Game Directory to Package Directory
|
|
cd $startdir/src
|
|
install -d $startdir/pkg/opt/
|
|
mv tremulous/ $startdir/pkg/opt/
|
|
|
|
# Compile Source
|
|
cd $startdir/src/tremulous-$pkgver-src
|
|
|
|
# they make silly mistakes that don't pass -Werror
|
|
sed -i 's/-Werror//' src/tools/asm/Makefile
|
|
|
|
make || return 1
|
|
|
|
if [ "$CARCH" = "x86_64" ]; then
|
|
#
|
|
# x86_64 Systems
|
|
#
|
|
|
|
# Install Binaries
|
|
install -m755 build/release-linux-x86_64/*.x86_64 \
|
|
$startdir/pkg/opt/tremulous
|
|
|
|
# Modify Launcher Scripts to use x86_64 Binaries
|
|
/bin/sed -i "s:TREM_BINARY:tremulous.x86_64:" \
|
|
$startdir/src/tremulous.launcher
|
|
/bin/sed -i "s:TREM_BINARY:tremded.x86_64:" \
|
|
$startdir/src/tremded.launcher
|
|
|
|
else
|
|
#
|
|
# i686 Systems
|
|
#
|
|
|
|
# Install Binaries
|
|
install -m755 build/release-linux-x86/*.x86 \
|
|
$startdir/pkg/opt/tremulous
|
|
|
|
# Modify Launcher Scripts to use i686 Binaries
|
|
/bin/sed -i "s:TREM_BINARY:tremulous.x86:" \
|
|
$startdir/src/tremulous.launcher
|
|
/bin/sed -i "s:TREM_BINARY:tremded.x86:" \
|
|
$startdir/src/tremded.launcher
|
|
|
|
fi
|
|
|
|
# Install Client Launcher
|
|
install -D -m755 $startdir/src/tremulous.launcher \
|
|
$startdir/pkg/usr/bin/tremulous
|
|
|
|
# Install Server Launcher
|
|
install -D -m755 $startdir/src/tremded.launcher \
|
|
$startdir/pkg/usr/bin/tremded
|
|
|
|
# Install Desktop Icons
|
|
install -D -m644 $startdir/src/tremulous.desktop \
|
|
$startdir/pkg/usr/share/applications/tremulous.desktop
|
|
install -D -m644 $startdir/pkg/opt/tremulous/tremulous.xpm \
|
|
$startdir/pkg/usr/share/pixmaps/tremulous.xpm
|
|
}
|