summaryrefslogtreecommitdiff
path: root/community/tremulous/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/tremulous/PKGBUILD')
-rw-r--r--community/tremulous/PKGBUILD45
1 files changed, 25 insertions, 20 deletions
diff --git a/community/tremulous/PKGBUILD b/community/tremulous/PKGBUILD
index 81f0e46a4..454f5f257 100644
--- a/community/tremulous/PKGBUILD
+++ b/community/tremulous/PKGBUILD
@@ -1,3 +1,4 @@
+# $Id: PKGBUILD 86782 2013-03-22 00:57:25Z eric $
#Contributor: Daenyth <Daenyth+arch [AT] gmail [dot] com>
pkgname=tremulous
@@ -42,31 +43,35 @@ md5sums=('e0e1b6e03e7596da00a77fe638560402'
build() {
local _arch=${CARCH/i686/x86}
- # Build and install the server
- mkdir -p $srcdir/tremded
- bsdtar -x -C $srcdir/tremded -f $srcdir/mg_tremded_source_1.01.tar.gz
- cd $srcdir/tremded
- make || return 1
- install -D -m755 build/release-linux-$_arch/tremded.$_arch $pkgdir/opt/tremulous/tremded.$_arch
- install -D -m644 $srcdir/tremdedrc $pkgdir/etc/tremdedrc
- install -D -m644 $srcdir/game.qvm $pkgdir/opt/tremulous/game.qvm
- install -D -m755 $srcdir/tremded.sh $pkgdir/usr/bin/tremded
+ # Build the server
+ mkdir -p "$srcdir/tremded"
+ bsdtar -x -C "$srcdir/tremded" -f "$srcdir/mg_tremded_source_1.01.tar.gz"
+ cd "$srcdir/tremded"
+ make
+# Build the client
+ cd "$srcdir/Release_1.011"
+ patch -Np1 -i "$srcdir/fix_fs26749.patch"
+ make
+}
+
+package() {
+ cd "$srcdir/tremded"
+ install -D -m755 build/release-linux-$_arch/tremded.$_arch "$pkgdir/opt/tremulous/tremded.$_arch"
+ install -D -m644 "$srcdir/tremdedrc" "$pkgdir/etc/tremdedrc"
+ install -D -m644 "$srcdir/game.qvm" "$pkgdir/opt/tremulous/game.qvm"
+ install -D -m755 "$srcdir/tremded.sh" "$pkgdir/usr/bin/tremded"
- # Build and install the client
- cd $srcdir/Release_1.011
- patch -Np1 -i $srcdir/fix_fs26749.patch || return 1
- make || return 1
- install -Dm755 build/release-linux-$_arch/tremulous.$_arch $pkgdir/opt/tremulous/tremulous.$_arch
- install -D -m755 $srcdir/tremulous.sh $pkgdir/usr/bin/tremulous
+ cd "$srcdir/Release_1.011"
+ install -Dm755 build/release-linux-$_arch/tremulous.$_arch "$pkgdir/opt/tremulous/tremulous.$_arch"
+ install -D -m755 "$srcdir/tremulous.sh" "$pkgdir/usr/bin/tremulous"
# Install the documentation
- install -Dm644 $srcdir/mg-client-manual.txt $pkgdir/usr/share/tremulous/mg-client-manual.txt
- install -Dm644 $srcdir/lakitu7_qvm.txt $pkgdir/usr/share/tremulous/lakitu7_qvm.txt
+ install -Dm644 "$srcdir/mg-client-manual.txt" "$pkgdir/usr/share/tremulous/mg-client-manual.txt"
+ install -Dm644 "$srcdir/lakitu7_qvm.txt" "$pkgdir/usr/share/tremulous/lakitu7_qvm.txt"
# Install the .desktop and icon files
- install -D -m644 $srcdir/tremulous.xpm $pkgdir/usr/share/pixmaps/tremulous.xpm
- install -D -m644 $srcdir/tremulous.desktop $pkgdir/usr/share/applications/tremulous.desktop
-
+ install -D -m644 "$srcdir/tremulous.xpm" "$pkgdir/usr/share/pixmaps/tremulous.xpm"
+ install -D -m644 "$srcdir/tremulous.desktop" "$pkgdir/usr/share/applications/tremulous.desktop"
}
# vim:set ts=2 sw=2 et: