summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd59c9fd12ec558ba5f41a777eaaaa5ed928dc78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Sebastian Gsänger <sebastian_gsaenger [at] web.de>
pkgname=final-doom-data-steam
pkgver=1
pkgrel=1
pkgdesc="Final Doom data via Steam"
arch=('any')
provides=('final-doom-data')
makedepends=('steamcmd')
license=('Proprietary')
url='http://store.steampowered.com/app/2290'

package() {
    # Use steamcmd to get data.
    printf "Enter your Steam username:"
    read steam_username
    steamcmd +@sSteamCmdForcePlatformType windows +@ShutdownOnFailedCommand 1 +force_install_dir $srcdir +login $steam_username "+app_update 2290 validate" +quit

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