blob: 025211a78ae45d6113fd59f1ff0f42cd5c8f6612 (
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
|
# Maintainer: 0xIsho <0xIsho+aur@proton.me>
# Contributor: Jonathan Knapp <jaknapp8+aur@gmail.com>
# URL: https://github.com/ValveSoftware/GameNetworkingSockets
# Upstream: https://github.com/ValveSoftware/GameNetworkingSockets
pkgname=gamenetworkingsockets-git
pkgver=1.4.1.164.g517fff0
pkgrel=1
pkgdesc="Reliable & unreliable messages over UDP. Robust message fragmentation & reassembly. Encryption."
arch=('x86_64')
url='https://github.com/ValveSoftware/GameNetworkingSockets'
license=('BSD-3-Clause')
depends=('protobuf' 'openssl')
makedepends=('cmake' 'git')
provides=('gamenetworkingsockets')
source=("$pkgname::git+https://github.com/ValveSoftware/GameNetworkingSockets.git")
md5sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname"
git submodule update --init
}
build() {
cd "$srcdir/$pkgname"
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$pkgdir/usr"
cmake --build build
}
package() {
cd "$srcdir/$pkgname"
cmake --install build
}
|