diff options
author | LW-archlinux | 2019-05-27 15:22:22 +0200 |
---|---|---|
committer | LW-archlinux | 2019-05-27 15:22:22 +0200 |
commit | 0bd70b577c767b4257e9657bac95161c7d04d0ca (patch) | |
tree | 9544387417135c97d4a00f416ca714a709cc767b /PKGBUILD | |
parent | 6aa61f58999acb744aacf59c0f41f8fba58923dc (diff) | |
download | aur-0bd70b577c767b4257e9657bac95161c7d04d0ca.tar.gz |
users should validate NINJAFLAGS value, not PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -11,7 +11,7 @@ pkgname=(lib32-mesa-git) pkgdesc="an open-source implementation of the OpenGL specification, git version" -pkgver=19.2.0_devel.111007.6b0b8f132aa +pkgver=19.2.0_devel.111223.7a7be613983 pkgrel=1 arch=('x86_64') makedepends=('python-mako' 'lib32-libxml2' 'lib32-libx11' 'xorgproto' @@ -36,6 +36,9 @@ sha512sums=('SKIP' '25da77914dded10c1f432ebcbf29941124138824ceecaf1367b3deedafaecabc082d463abcfa3d15abff59f177491472b505bcb5ba0c4a51bb6b93b4721a23c2' 'c7dbb390ebde291c517a854fcbe5166c24e95206f768cc9458ca896b2253aabd6df12a7becf831998721b2d622d0c02afdd8d519e77dea8e1d6807b35f0166fe') +# NINJAFLAGS is an env var used to pass commandline options to ninja +# NOTE: It's your responbility to validate the value of $NINJAFLAGS. If unsure, don't set it. + # MESA_WHICH_LLVM is an environment variable used to determine which llvm package tree is used to built mesa-git against. # Adding a line to makepkg.conf that sets this value is the simplest way to ensure a specific choice. # @@ -131,17 +134,14 @@ build () { -D tools=[] \ meson configure _build - if [[ ! $NINJAFLAGS ]]; then - ninja -C _build - else - ninja "$NINJAFLAGS" -C _build - fi + + ninja "$NINJAFLAGS" -C _build } package() { - DESTDIR="$pkgdir" ninja -C _build install + DESTDIR="$pkgdir" ninja "$NINJAFLAGS" -C _build install # remove files provided by mesa-git rm -rf "$pkgdir"/etc |