blob: 32196f94a01d6c34f978473d814e4ce00f5ef994 (
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
40
41
|
# Maintainer: Lukas "DerGeneralFluff" Lichten <lichtenrider@hotmail.de>
_reponame=BeamMP-Launcher
pkgname=beammp-launcher-git
pkgver=r433.00bd5be
pkgrel=1
pkgdesc="Multiplayer Launcher/Client for BeamMP, providing multiplayer for BeamNG.drive"
arch=('x86_64')
url='https://github.com/BeamMP/BeamMP-Launcher'
# Project is being relicensed into AGPL, but this has not finished yet
license=('proprietary')
# license=('AGPL-3.0')
depends=()
makedepends=('vcpkg' 'cmake' 'git')
provides=("beammp-launcher")
conflicts=("beammp-launcher")
source=("git+https://github.com/BeamMP/BeamMP-Launcher"
"git+https://github.com/microsoft/vcpkg")
b2sums=('SKIP'
'SKIP')
pkgver() {
cd "$srcdir/${_reponame}"
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
export VCPKG_ROOT="$srcdir/vcpkg"
vcpkg install --downloads-root="$VCPKG_ROOT/cache" --vcpkg-root="$VCPKG_ROOT" --binarysource=clear zlib nlohmann-json openssl cpp-httplib[openssl]
cd "$srcdir/${_reponame}"
cmake -DCMAKE_BUILD_TYPE=Release . -B bin -DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-linux
cd "$srcdir/${_reponame}/bin"
# cmake --build . --config Release
make
}
package() {
install -Dm755 "$srcdir/${_reponame}/bin/BeamMP-Launcher" "$pkgdir/usr/bin/BeamMP-Launcher"
}
|