summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ed58d46bf8208d0471c3a02d320d3daa96ac4a0 (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
# 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.92.gde03d74
pkgrel=1
pkgdesc="Reliable & unreliable messages over UDP. Robust message fragmentation & reassembly. Encryption."
arch=('x86_64')
url='https://github.com/ValveSoftware/GameNetworkingSockets'
license=('BSD')
depends=('protobuf' 'openssl')
makedepends=('cmake' 'ninja')
provides=('gamenetworkingsockets')
source=("$pkgname::git+https://github.com/ValveSoftware/GameNetworkingSockets.git")
md5sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/^v//;s/-/./g'
}

build() {
  cd "$srcdir/$pkgname"
  mkdir -p build;
  cd build;
  cmake -G Ninja ..
  ninja
}

package() {
  cd "$srcdir/$pkgname"
  install -D -m644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
  install -Dm 644 "build/bin/libGameNetworkingSockets.so" -t "$pkgdir/usr/lib"
}