summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76d4ae9f549980479338c6368ec8ff1367488648 (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
# Maintainer: Marko Semet <marko10_000@mailbox.org>
pkgname=buildbox-run-bubblewrap
pkgver=1.0.0
pkgrel=4
pkgdesc="An implementation of a runner for BuildGrid/buildbox using Bubblewrap."
arch=(x86_64)
url="https://buildgrid.build"
license=('Apache')
depends=(bubblewrap google-glog grpc util-linux-libs 'buildbox-common')
makedepends=(benchmark 'cmake' 'git' ninja)
source=("git+https://gitlab.com/BuildGrid/buildbox/buildbox-run-bubblewrap#tag=1.0.0&commit=9808341cd6d1fe3b9a71578276f8c7394070116f")
sha256sums=('SKIP')

build() {
  mkdir -p build
  cd build
  CXXFLAGS="-flto=auto -flto-partition=one -fuse-linker-plugin -fno-fat-lto-objects -O2 -ffunction-sections -Wl,--gc-sections ${CXXFLAGS}" cmake ../buildbox-run-bubblewrap \
    -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  ninja
}

check() {
  cd build
  ninja -k-1 test
}

package() {
  cd build
  DESTDIR="$pkgdir/" ninja install
  ln -s buildbox-run-bubblewrap "$pkgdir/usr/bin/buildbox-run"
}