summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 36e4a1987476eb84a0f60c812abdce32a2e20e6a (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
# Maintainer: Sebastian Gsänger <sebastian_gsaenger [at] web.de>
pkgname=doom2-data-steam
pkgver=1
pkgrel=1
pkgdesc="Doom 2 data via Steam"
arch=('any')
provides=('doom2-data')
makedepends=('steamcmd')
license=('Proprietary')
url='http://store.steampowered.com/app/2300'

package() {
    cd $srcdir

    # Use steamcmd to get data.
    mkdir -p $srcdir/tmp
    printf "Enter your Steam username:"
    read steam_username
    steamcmd +@sSteamCmdForcePlatformType windows +@ShutdownOnFailedCommand 1 +force_install_dir $srcdir/tmp +login $steam_username "+app_update 2300 validate" +quit

    # Move required files to pkgdir
    install -D -m 644 $srcdir/tmp/base/DOOM2.WAD $pkgdir/usr/share/doom/DOOM2.WAD
}