summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b038b3b63cac7beb23ccd9b252c87aba751b0929 (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
# Maintainer: Alexander Diana (alexander.a.diana@gmail.com)
pkgname=vrising-server
pkgver=0.6.10.62832
pkgrel=1
pkgdesc="Dedicated server for the V-Rising PC game"
arch=('x86_64')
url='https://playvrising.com/'
license=('custom:StunlockStudiosLicense')
depends=("wine" "wine-mono" "xorg-server-xvfb" "lib32-gnutls")

makedepends=("steamcmd")

source=('vrising-server.service'
        'vrising-framebuffer.service'
        'vrising.sysusers'
        'vrising.tmpfiles'
        'gracefulshutdown.sh')

sha256sums=('8af62cab2aa72e9827d0666cbecbbd22377f9fd67b183dd29e771ffb3a269800'
            'f23acc2cac0d1abfa8c040b5f54c46da563a23ed20a54deba11128ce6328cc6b'
            'eb15d8ec5aa0a8126f874d9b340d80d9642fc1cdedf4fefd06d4edb3069e164f'
            '7ab89ff0813a22ed86e7c3a05bec3fe40628920bebc87a5a5f4200946974767f'
            '66e46b3d7618801e5188d25305bc5b82f9e4969810da1b585a6ff2228d70f01d')

prepare() {
    steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "$srcdir/$pkgname" +login anonymous +app_update 1829350 validate +quit
}

package() {
    cd $srcdir
    mkdir -p "$pkgdir/opt"
    cp -r $pkgname "$pkgdir/opt/"

    install -D -m 0644 vrising-server.service "$pkgdir/usr/lib/systemd/system/vrising-server.service"
    install -D -m 0644 vrising-framebuffer.service "$pkgdir/usr/lib/systemd/system/vrising-framebuffer.service"
    install -D -m 0644 vrising.sysusers "$pkgdir/usr/lib/sysusers.d/vrising.conf"
    install -D -m 0644 vrising.tmpfiles "$pkgdir/usr/lib/tmpfiles.d/vrising.conf"
    install -D -m 0755 gracefulshutdown.sh "$pkgdir/opt/$pkgname/gracefulshutdown.sh"
}