# Maintainer: fearlessdots # About this software's licensing: pkgname=openbve-bin pkgver=1.9.1.2 pkgrel=1 pkgdesc="Realistic 3D train/railway simulator" arch=('x86_64') url="https://github.com/leezer3/OpenBVE" license=('custom:public domain') depends=('mono') provides=('openbve') conflicts=('openbve') source=("https://github.com/leezer3/OpenBVE/releases/download/${pkgver}/OpenBVE-${pkgver}.deb") sha256sums=('0f07e2b17210bf5134671c1b564d2d3cf2b8842f5d003c565e51af2cefb8d62e') package() { # Extract downloaded file tar -xf "$srcdir/data.tar.xz" -C "$pkgdir/" # Change game launcher cat "$pkgdir/usr/games/openbve" | sed 's#/usr/bin/cli#/usr/bin/mono#' | tee "$pkgdir/usr/games/openbve" # Link executable to /usr/bin install -d "$pkgdir/usr/bin/" ln -sf /usr/games/openbve "$pkgdir/usr/bin/openbve" }