blob: 684909741a63edd755eaad47917f6a6b62f2c37f (
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
|
# Maintainer: fearlessdots <filipebertelli@tutanota.com>
# About this software's licensing: <https://github.com/leezer3/OpenBVE/issues/589>
pkgname=openbve-bin
pkgver=1.8.4.0
pkgrel=1
pkgdesc="Realistic 3D train/railway simulator"
arch=('x86_64')
url="https://github.com/leezer3/OpenBVE"
license=()
depends=('mono')
source=("https://github.com/leezer3/OpenBVE/releases/download/${pkgver}/OpenBVE-${pkgver}.deb")
sha256sums=('938dd6667bfde61afd2debab54dd2c8d63dc95fcecffba8a5b384efc9a56fbd9')
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"
}
|