blob: 84e27756d5747e1d0e6b6d60a5bcbe8d622d0426 (
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
|
# Maintainer: Lucki <https://aur.archlinux.org/account/Lucki>
# shellcheck shell=bash
# shellcheck disable=SC2034,SC2154
pkgname=truckersmp-cli
pkgver=0.10.2
pkgrel=1
source=("$pkgname-$pkgver.src.tar.gz::https://github.com/truckersmp-cli/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('36bd5e79760142adb77a791e99f06b63f2d40fb5a9ff03d772ec76557bb5b27f1c475647de6609107dee1f7abf74ce2912b5348b619e6f91b7732a3a378f055e')
pkgdesc="A simple launcher for TruckersMP to play ATS or ETS2 in multiplayer."
arch=('x86_64')
url="https://github.com/truckersmp-cli/truckersmp-cli"
license=('MIT')
depends=('python' 'sdl2')
optdepends=('python-vdf: automatic steam account detection'
'python-setuptools: get version information'
'steam: possibility to use proton'
'wine: possibility to use wine')
makedepends=('mingw-w64-gcc' 'python-setuptools')
build() {
cd "$pkgname-$pkgver" || exit
make
python setup.py build
}
package() {
cd "$pkgname-$pkgver" || exit
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 "$pkgname.bash" "$pkgdir/usr/share/bash-completion/completions/$pkgname"
install -Dm644 "_$pkgname" "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
}
|