summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a5e471d82afdecbdc435dd73ed5a514886bad3b (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
# Maintainer: Sam S. <smls75@gmail.com>

pkgname=arxfatalis-data-copy
pkgver=1.21
pkgrel=1
pkgdesc='Arx Fatalis game data from an existing win32 installation (for use with arxlibertatis)'
url='http://www.arkane-studios.com/uk/arx.php'
arch=('any')
license=('custom:commercial')
provides=('arxfatalis-data')
replaces=('arx-fatalis-data-copy')
conflicts=('arxfatalis-data-gog' 'arxfatalis-data-demo'
           'arx-fatalis-data-gog' 'arx-fatalis-data-demo')
optdepends=('arxlibertatis: native Linux game executable')
PKGEXT='.pkg.tar'

source=("arx-install-data")  # from http://arx.vg/arx-install-data
md5sums=('fc5456e4c213af243b65862db8d5db0a')

_gamefolder="Arx Fatalis"

package() {
    _realfolder="$(realpath "$startdir/$_gamefolder")"
    
    if [[ ! -e $_realfolder ]]; then
       error "Existing game installation folder not found"
       echo "    Please symlink it to '$startdir/$_gamefolder'"
       exit 1
    fi
    
    chmod +x arx-install-data
    ./arx-install-data --batch "$_realfolder" "$pkgdir/usr/share/arx"
}