blob: d09daff4f78e9259ddac07d165f34d86abc12118 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: John-Michael Mulesa <jmulesa [at] gmail.com>
pkgname=dirt2-wine-steam
_pkgname=dirt2
pkgver=1.1
pkgrel=3
arch=('i686' 'x86_64')
makedepends=('steamcmd' 'icoutils')
depends=('wine')
source=("${_pkgname}.sh" "${_pkgname}.desktop"
"https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases/download/v4.59/Ultimate-ASI-Loader.zip")
pkgdesc="Colin McRae: DiRT 2 using WINE with data via Steam"
license=('custom')
install=dirt2.install
url='https://steamdb.info/app/12840/'
sha256sums=('6a960fef596825ff2f05fa2e8217f6c2e35487de99d6a572d7e88321ae8f7732'
'197214032362607eb10eabf02e3382c522c8bec5fd61e72de6180f09f655caa7'
'ee55665eceef3ca18b5a0bafe269d41cd814e34d572aa1083c4b78b85d5b3958')
prepare() {
mkdir -p $srcdir/${_pkgname}
# Use steamcmd to get data.
printf "Enter your Steam username:"
read steam_username
steamcmd +@sSteamCmdForcePlatformType windows +@ShutdownOnFailedCommand 1 +force_install_dir $srcdir/${_pkgname} +login $steam_username "+app_update 12840 validate" +quit
icotool -x -o . ${_pkgname}/*.ico
}
package() {
mkdir -p $pkgdir/opt/${_pkgname}
# Move required files to pkgdir
cp -r $srcdir/${_pkgname}/* $pkgdir/opt/${_pkgname}/
cp $srcdir/dinput8.dll $pkgdir/opt/${_pkgname}/xlive.dll
rm -rf $pkgdir/opt/${_pkgname}/steamapps
# Install desktop file.
install -D -m 644 $srcdir/${_pkgname}.desktop \
$pkgdir/usr/share/applications/${_pkgname}.desktop
# Install icon file.
install -D -m 644 $srcdir/dirt2_1_256x256x32.png \
$pkgdir/usr/share/pixmaps/${_pkgname}.png
# Install bash startup script.
install -D -m 755 $srcdir/${_pkgname}.sh \
$pkgdir/usr/bin/${_pkgname}
}
|