summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlan James Jenkins2015-06-14 18:51:54 +0100
committerAlan James Jenkins2015-06-14 18:51:54 +0100
commit807d917b158ea0bb6ba442f327dd42e8a27f1b1d (patch)
tree78c698eda9a6842a0925bf5b3ac752688fb2d783 /PKGBUILD
downloadaur-doom3-data-steam.tar.gz
Initial commit to AUR4.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a6e883b160b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Alan Jenkins <alan.james.jenkins [at] gmail.com>
+pkgname=doom3-data-steam
+pkgver=1
+pkgrel=2
+pkgdesc="Doom 3 data via Steam"
+arch=('any')
+provides=('doom3-data')
+depends=('steamcmd')
+license=('GPL')
+install='doom3-data-steam.install'
+url='http://store.steampowered.com/app/9050'
+
+package() {
+ cd $srcdir
+ doom3dir=$srcdir/doom3
+
+ # Use steamcmd to get quake3.
+ mkdir -p $doom3dir
+ printf "Enter your Steam username:"
+ read steam_username
+ steamcmd +@sSteamCmdForcePlatformType windows +@ShutdownOnFailedCommand 1 +force_install_dir $doom3dir +login $steam_username "+app_update 9050 validate" +quit
+
+ # Move required files to pkgdir
+ install -D -m 644 $srcdir/doom3/base/game00.pk4 $pkgdir/opt/doom3/base/game00.pk4
+ install -D -m 644 $srcdir/doom3/base/pak000.pk4 $pkgdir/opt/doom3/base/pak000.pk4
+ install -D -m 644 $srcdir/doom3/base/pak001.pk4 $pkgdir/opt/doom3/base/pak001.pk4
+ install -D -m 644 $srcdir/doom3/base/pak002.pk4 $pkgdir/opt/doom3/base/pak002.pk4
+ install -D -m 644 $srcdir/doom3/base/pak003.pk4 $pkgdir/opt/doom3/base/pak003.pk4
+ install -D -m 644 $srcdir/doom3/base/pak004.pk4 $pkgdir/opt/doom3/base/pak004.pk4
+}
+