diff options
author | Slashbunny | 2009-08-12 22:17:38 -0400 |
---|---|---|
committer | Slashbunny | 2009-08-12 22:17:38 -0400 |
commit | b8dfc2fe7b11275d5f8fa913d03179d226f02f91 (patch) | |
tree | 20604dbe75e9da3df079b35aaf4a415e4a11b448 | |
download | aur-b8dfc2fe7b11275d5f8fa913d03179d226f02f91.tar.gz |
Initial commit of personal PKGBUILDs for Arch Linux
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 88 | ||||
-rw-r--r-- | btrl.desktop | 12 | ||||
-rw-r--r-- | btrl.launcher | 6 |
5 files changed, 142 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3b4ede0f20df --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = btrl + pkgdesc = Beyond the Red Line is a completely free stand-alone conversion of Freespace 2 based on the TV show Battlestar Galactica + pkgver = demo + pkgrel = 2 + url = http://www.beyondtheredline.net/ + arch = i686 + arch = x86_64 + license = custom + depends = libgl + depends = libtheora + depends = libvorbis + depends = mesa + depends = openal + depends = sdl + source = btrl.desktop + source = btrl.launcher + source = ftp://ftp.unreal.ie/unreal.ie/non-unreal/BtRLDemoInstaller.run + source = http://www.fsoinstaller.com/files/btrl/btrlpatch_linux.tar.gz + source = http://www.fsoinstaller.com/files/btrl/w_patch2.vp + source = http://www.fsoinstaller.com/files/btrl/x_patch1.vp + source = http://www.fsoinstaller.com/files/btrl/y_patch1.vp + md5sums = 3acd39a97465576bbb28855c025b987a + md5sums = b4988100342221dacdc9e011db07a57e + md5sums = f11b425f3aeb9acba9a180cfc4dafcf0 + md5sums = 048d91174c0ede75cf428406a444db56 + md5sums = b656b65b3832e5cbb6f87afb7280f1d5 + md5sums = 3c6f15f5e21da5fa89a656993f919ac7 + md5sums = 22602aa184842d80812aba04ca51cbaa + +pkgname = btrl + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e4f398dc5b3a --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +src/ +pkg/ +*.pkg.tar.xz +*.pkg.tar +*.src.tar.gz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b44722116b8f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,88 @@ +# Contributor: Slash <demodevil5 [at] yahoo [dot] com> + +pkgname=btrl +pkgver=demo +pkgrel=2 +pkgdesc="Beyond the Red Line is a completely free stand-alone conversion of Freespace 2 based on the TV show Battlestar Galactica" +url='http://www.beyondtheredline.net/' +arch=('i686' 'x86_64') +license=('custom') +depends=('libgl' 'libtheora' 'libvorbis' 'mesa' 'openal' 'sdl') +source=('btrl.desktop' 'btrl.launcher' +'ftp://ftp.unreal.ie/unreal.ie/non-unreal/BtRLDemoInstaller.run' +'http://www.fsoinstaller.com/files/btrl/btrlpatch_linux.tar.gz' +'http://www.fsoinstaller.com/files/btrl/w_patch2.vp' +'http://www.fsoinstaller.com/files/btrl/x_patch1.vp' +'http://www.fsoinstaller.com/files/btrl/y_patch1.vp') +md5sums=('3acd39a97465576bbb28855c025b987a' + 'b4988100342221dacdc9e011db07a57e' + 'f11b425f3aeb9acba9a180cfc4dafcf0' + '048d91174c0ede75cf428406a444db56' + 'b656b65b3832e5cbb6f87afb7280f1d5' + '3c6f15f5e21da5fa89a656993f919ac7' + '22602aa184842d80812aba04ca51cbaa') + +build () { + cd $srcdir + + # Create Destination Directory + install -d $pkgdir/opt/btrl + + # Extract Data from the Installer + chmod +x $srcdir/BtRLDemoInstaller.run + ./BtRLDemoInstaller.run --noexec --tar xvf + + # Extract Game Data into Destination Directory + bsdtar -x -o -C $pkgdir/opt/btrl -f $srcdir/game_data.tar + + # Extract Game Libaries into Destination Directory + bsdtar -x -o -C $pkgdir/opt/btrl -f $srcdir/libs.tar + + # Remove Bad Files + rm $pkgdir/opt/btrl/data/freddocs/Thumbs.db + + # Copy README File + install -D -m 644 $srcdir/README \ + $pkgdir/opt/btrl/README + + # Install Binaries based on Archetecture + if [ "$CARCH" = "x86_64" ]; then + # + # x86_64 Systems (Use unpatched binaries) + # + install -D -m 755 $srcdir/bin/Linux/x86_64/glibc-2.1/btrl_demo \ + $pkgdir/opt/btrl/btrl_demo + install -D -m 755 $srcdir/bin/Linux/x86_64/glibc-2.1/btrl_demo.bin \ + $pkgdir/opt/btrl/btrl_demo.bin + else + # + # i686 Systems (Use patched binaries) + # + install -D -m 755 $srcdir/btrl_demo \ + $pkgdir/opt/btrl/btrl_demo + install -D -m 755 $srcdir/btrl_demo.bin \ + $pkgdir/opt/btrl/btrl_demo.bin + + # Install Patch Data + install -D -m 644 $srcdir/w_patch2.vp \ + $pkgdir/opt/btrl/w_patch2.vp + + install -D -m 644 $srcdir/x_patch1.vp \ + $pkgdir/opt/btrl/x_patch1.vp + + install -D -m 644 $srcdir/y_patch1.vp \ + $pkgdir/opt/btrl/y_patch1.vp + fi + + # Install Launcher + install -D -m 755 $srcdir/btrl.launcher \ + $pkgdir/usr/bin/btrl + + # Install Desktop File + install -D -m 644 $srcdir/btrl.desktop \ + $pkgdir/usr/share/applications/btrl.desktop + + # Install Icon File + install -D -m 644 $srcdir/btrl.png \ + $pkgdir/usr/share/pixmaps/btrl.png +} diff --git a/btrl.desktop b/btrl.desktop new file mode 100644 index 000000000000..dfa8ad7c5546 --- /dev/null +++ b/btrl.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=BtRL +GenericName=BtRL +Comment=Beyond the Red Line +Exec=/usr/bin/btrl +Icon=/usr/share/pixmaps/btrl.png +StartupNotify=true +Terminal=false +Type=Application +Categories=Qt;KDE;GNOME;Application;Game; + diff --git a/btrl.launcher b/btrl.launcher new file mode 100644 index 000000000000..d14873d35b99 --- /dev/null +++ b/btrl.launcher @@ -0,0 +1,6 @@ +#!/bin/bash + +cd "/opt/btrl" +./btrl_demo $* +exit $? + |