summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1d30f9b59262b77a7d3f63b0895d82bb795fa22 (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
42
# Maintainer: envolution
# Contributor: David Garfias <dgarfiasme at gmail dot com>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=gfxstream
pkgdesc="Graphics Streaming Kit (colloquially known as Gfxstream) is a code generator that makes it easier to serialize and forward graphics API calls from one place to another."
license=("Apache-2.0")
pkgver=0.1.2
pkgrel=2
url="https://android.googlesource.com/platform/hardware/google/gfxstream/"
source=("git+https://android.googlesource.com/platform/hardware/google/gfxstream#tag=v${pkgver}-gfxstream-release")
arch=("x86_64")
sha256sums=('6a97a1762a3851076f8e844fd812a9b7c569ca931b1197eca0a2c402583b42c8')
makedepends=(
  meson
  git
  ninja
  clang
  vulkan-headers)
depends=(
  libaemu
  libglvnd
  mesa
  glu
  freeglut
  libdrm
  glm)

prepare() {
  cd "$pkgname"
  mkdir build
}

build() {
  cd "$pkgname"
  CC=clang CXX=clang++ arch-meson -Ddecoders=gles,vulkan,composer . build
  meson compile -C build
}
package() {
  cd "$pkgname"
  meson install -C build --destdir "$pkgdir"
}
# vim:set ts=2 sw=2 et: