# Maintainer: blacktea # Contributor: kXuan pkgname=envoyproxy pkgver=1.15.0 pkgrel=1 pkgdesc="A high performance, open source, general RPC framework that puts mobile and HTTP/2 first." arch=('i686' 'x86_64') url='https://envoyproxy.io' license=('Apache2') makedepends=( 'bazel' 'cmake' 'git' 'go' 'java-environment-openjdk' 'ninja' 'perl' 'python' ) source=( "https://github.com/$pkgname/envoy/archive/v$pkgver.tar.gz" ) sha512sums=('1513bd07b6c8471acae85840ae1ebac2639c31b09357d854029da0d3862c5685100bc19620c2807225d69c08beb9e55ab6eaf9006c4039868968970796aa5fd8' ) prepare() { cd "envoy-$pkgver" go get github.com/bazelbuild/buildtools/buildifier bazel --version | cut -d\ -f2 > .bazelversion # The commit id of $pkgver echo "50ef0945fa2c5da4bff7627c3abf41fdd3b7cffd" > SOURCE_VERSION } build() { cd "envoy-$pkgver" bazel build --verbose_failures --workspace_status_command bazel/get_workspace_status -c opt //source/exe:envoy-static } package() { cd "envoy-$pkgver" install -Dm755 bazel-bin/source/exe/envoy-static "$pkgdir"/usr/bin/envoy install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }