diff options
author | Slashbunny | 2015-05-24 15:13:57 -0400 |
---|---|---|
committer | Slashbunny | 2015-05-24 15:13:57 -0400 |
commit | 1f6c50df2a9d1dae2bd2906a79b1e81583794db4 (patch) | |
tree | f564d21ddd0aea0e287ad9e2aaecc48c6a8e5dec | |
download | aur-1f6c50df2a9d1dae2bd2906a79b1e81583794db4.tar.gz |
Initial commit (adopted)
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 52 | ||||
-rw-r--r-- | quake4-multiplayer-demo-dedicated.sh | 4 | ||||
-rw-r--r-- | quake4-multiplayer-demo-smp.sh | 4 | ||||
-rw-r--r-- | quake4-multiplayer-demo.install | 15 | ||||
-rw-r--r-- | quake4-multiplayer-demo.sh | 4 |
6 files changed, 103 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d7a2c8a149d9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = quake4-multiplayer-demo + pkgdesc = Quake 4 Multiplayer demo + pkgver = 1.4.2 + pkgrel = 1 + url = http://www.quake4game.com/ + install = quake4-multiplayer-demo.install + arch = i686 + license = custom:"Quake 4 Multiplayer Demo" + makedepends = aria2 + depends = alsa-lib + depends = sdl + depends = libxext + depends = libgl + source = ftp://ftp.idsoftware.com/idstuff/quake4/demo/quake4-multiplayer-demo.x86.run + source = quake4-multiplayer-demo.sh + source = quake4-multiplayer-demo-dedicated.sh + source = quake4-multiplayer-demo-smp.sh + md5sums = 48188680efcf15421803d2af7f7750ca + md5sums = c80e55efbead2cae5e5326904a82d4d2 + md5sums = 791cf1d51a96213859f1608e08667d70 + md5sums = 95bcafe7217f4a67bca54f41dcab8d11 + +pkgname = quake4-multiplayer-demo + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..330fa0de0dda --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Contributor: Andrew Simmons <andrew.simmons@gmail.com> + +pkgname=quake4-multiplayer-demo +pkgver=1.4.2 +pkgrel=1 +pkgdesc="Quake 4 Multiplayer demo" +url="http://www.quake4game.com/" +license="" +depends=('alsa-lib' 'sdl' 'libxext' 'libgl') +makedepends=('aria2') +arch=('i686') +license=('custom:"Quake 4 Multiplayer Demo"') +conflicts=() +replaces=() +backup=() +install="quake4-multiplayer-demo.install" +source=(ftp://ftp.idsoftware.com/idstuff/quake4/demo/$pkgname.x86.run \ + $pkgname.sh \ + ${pkgname}-dedicated.sh \ + ${pkgname}-smp.sh) +md5sums=('48188680efcf15421803d2af7f7750ca' + 'c80e55efbead2cae5e5326904a82d4d2' + '791cf1d51a96213859f1608e08667d70' + '95bcafe7217f4a67bca54f41dcab8d11') + +build() { + cd $startdir/src + chmod +x $pkgname.x86.run + mkdir -p $startdir/pkg/opt/$pkgname \ + $startdir/pkg/usr/bin \ + $startdir/pkg/usr/share/licenses/$pkgname + ./$pkgname.x86.run -- -i $startdir/pkg/opt/$pkgname -b $startdir/pkg/usr/bin + # ncurses & gtk installers don't return 1 when canceled, so check that files are installed + ls $startdir/pkg/opt/$pkgname/q4base || return 1 + + install -m755 -D $pkgname.sh $startdir/pkg/opt/$pkgname/$pkgname + install -m755 -D ${pkgname}-dedicated.sh $startdir/pkg/opt/$pkgname/${pkgname}-dedicated + install -m755 -D ${pkgname}-smp.sh $startdir/pkg/opt/$pkgname/${pkgname}-smp + + rm $startdir/pkg/opt/$pkgname/quake4-demo \ + $startdir/pkg/opt/$pkgname/quake4-demo-dedicated \ + $startdir/pkg/opt/$pkgname/quake4-demo-smp \ + $startdir/pkg/usr/bin/quake4-demo \ + $startdir/pkg/usr/bin/quake4-demo-dedicated \ + $startdir/pkg/usr/bin/quake4-demo-smp + + ln -sf /opt/$pkgname/$pkgname $startdir/pkg/usr/bin/$pkgname + ln -sf /opt/$pkgname/${pkgname}-dedicated $startdir/pkg/usr/bin/${pkgname}-dedicated + ln -sf /opt/$pkgname/${pkgname}-smp $startdir/pkg/usr/bin/${pkgname}-smp + ln -sf /opt/$pkgname/EULA.txt $startdir/pkg/usr/share/licenses/$pkgname/EULA.txt +} + diff --git a/quake4-multiplayer-demo-dedicated.sh b/quake4-multiplayer-demo-dedicated.sh new file mode 100644 index 000000000000..8a6c63877299 --- /dev/null +++ b/quake4-multiplayer-demo-dedicated.sh @@ -0,0 +1,4 @@ +#!/bin/sh +cd /opt/quake4-multiplayer-demo +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. +exec ./q4ded.x86 "$@" diff --git a/quake4-multiplayer-demo-smp.sh b/quake4-multiplayer-demo-smp.sh new file mode 100644 index 000000000000..3cef7382d3de --- /dev/null +++ b/quake4-multiplayer-demo-smp.sh @@ -0,0 +1,4 @@ +#!/bin/sh +cd /opt/quake4-multiplayer-demo +export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:." +exec ./quake4smp.x86 "$@"
\ No newline at end of file diff --git a/quake4-multiplayer-demo.install b/quake4-multiplayer-demo.install new file mode 100644 index 000000000000..d00532bede32 --- /dev/null +++ b/quake4-multiplayer-demo.install @@ -0,0 +1,15 @@ +post_install() { +cat << EOF +IMPORTANT +==> In order to use the software, you have to agree to ID Software's license +==> located in /usr/share/licenses/quake4-multiplayer-demo/EULA.txt +==> If you don't, please remove this package (pacman -R quake4-multiplayer-demo) +EOF + + /bin/true +} + + +op=$1 +shift +$op $* diff --git a/quake4-multiplayer-demo.sh b/quake4-multiplayer-demo.sh new file mode 100644 index 000000000000..c7857e865693 --- /dev/null +++ b/quake4-multiplayer-demo.sh @@ -0,0 +1,4 @@ +#!/bin/sh +cd /opt/quake4-multiplayer-demo +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. +exec ./quake4.x86 "$@" |