summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 778369ecb424faa7350f6e1b63d343c0492d88eb (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: Martin Müllenhaupt <mm+aur.archlinux.org@netlair.de>
pkgname=faf-ice-adapter
pkgver=6.3.3
pkgrel=1
epoch=0
pkgdesc="A P2P connection proxy for Supreme Commander: Forged Alliance using ICE"
url="http://www.faforever.com/"
arch=('x86_64')
license=('GPL3')
groups=()
depends=('libc++')
makedepends=('git' 'ninja' 'cmake' 'clang' 'libc++')
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/FAForever/ice-adapter.git" "https://github.com/FAForever/libwebrtc/releases/download/68-faf-1/libwebrtc-68-faf-1-linux-x64.tar.gz")
sha256sums=('SKIP' '6407a3fe87d68d8f0f62f7405de219218ecdf4cf0f3a9cd724dd261b6055d686')
noextract=()
validpgpkeys=()

pkgver() {
  cd "ice-adapter"
  git describe --tags --abbrev=0 | cut -d v -f 2 | sed 's/-/./g'
}

build() {
  tar xf "libwebrtc-68-faf-1-linux-x64.tar.gz"
  cd "ice-adapter"
  cmake -G Ninja -DCMAKE_CXX_COMPILER="/usr/bin/clang++" -DWEBRTC_INCLUDE_DIRS="../include" -DWEBRTC_LIBRARIES="../lib/libwebrtc.a" -DCMAKE_BUILD_TYPE=Release .
  ninja
}

package() {
  install -D -s "./ice-adapter/faf-ice-adapter" "$pkgdir/usr/bin/faf-ice-adapter"
}