summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6e883b160b9b267f02e0690ec194e38a0a12d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
}