summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4518f639ee854c7e6647f4f8bcf1878c7b4f6282 (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
# Maintainer: John-Michael Mulesa <jmulesa [at] gmail.com>
# Contributor: Sebastian Gsänger <sebastian_gsaenger [at] web.de>

pkgname=prey-data-steam
pkgver=1
pkgrel=1
arch=('any')
makedepends=('steamcmd')
pkgdesc="Prey data via Steam"
optdepends=('prey: Linux game binaries for Prey')
license=('custom')
provides=('prey-data')
url='https://steamdb.info/app/3970/'

prepare() {
    mkdir -p $srcdir/prey

    # Use steamcmd to get data.
    printf "Enter your Steam username:"
    read steam_username
    steamcmd +@sSteamCmdForcePlatformType windows +@ShutdownOnFailedCommand 1 +force_install_dir $srcdir/prey +login $steam_username "+app_update 3970 validate" +quit
}

package() {
    mkdir -p $pkgdir/opt/prey/base

    # Move required files to pkgdir
    cp $srcdir/prey/base/pak0{00..04}.pk4 $pkgdir/opt/prey/base/
}