diff options
author | Lone_Wolf | 2023-05-25 21:24:57 +0200 |
---|---|---|
committer | Lone_Wolf | 2023-05-25 21:24:57 +0200 |
commit | 8859a6fedbff43329abbba35c0a9d9f42f20aa55 (patch) | |
tree | 265f13592f21e91bf75886bbd6999d22a6b7d7d8 /PKGBUILD | |
parent | f430813ea07e1d69fd03616732d3f3a2037ca4c2 (diff) | |
download | aur-8859a6fedbff43329abbba35c0a9d9f42f20aa55.tar.gz |
added external deps in source-array, lots of small changes
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 29 insertions, 12 deletions
@@ -1,7 +1,8 @@ -# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch> +# Maintainer: Lone_Wolf <Lone_Wolf@klaas-de-kat.nl> +# Contributor: Eric Engestrom <aur [at] engestrom [dot] ch> pkgname=spirv-tools-git -pkgver=r3643.d5f69db +pkgver=r3673.e0936b6 pkgrel=1 epoch=1 pkgdesc='API and commands for processing SPIR-V modules' @@ -10,14 +11,29 @@ arch=('i686' 'x86_64') license=('custom') groups=('vulkan-devel') source=('git+https://github.com/KhronosGroup/SPIRV-Tools' + 'git+https://github.com/google/googletest.git' + 'git+https://github.com/google/effcee.git' + 'git+https://github.com/google/re2.git' + 'git+https://github.com/abseil/abseil-cpp.git' ) sha1sums=('SKIP' -) -depends=('gcc-libs' 'sh') -makedepends=('cmake' 'python' 'git' 'spirv-headers-git') -options=('staticlibs') -conflicts=('spirv-tools') -provides=('spirv-tools') + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP') +depends=(glibc gcc-libs sh) +makedepends=(cmake python git spirv-headers-git) +conflicts=(spirv-tools) +provides=(spirv-tools) + +prepare() { + # link external sources so cmake can find them + cd SPIRV-Tools/external + ln -s "$srcdir"/googletest + ln -s $srcdir/abseil-cpp abseil_cpp + ln -s "$srcdir"/effcee + ln -s "$srcdir"/re2 +} pkgver() { cd SPIRV-Tools @@ -28,6 +44,7 @@ pkgver() { build() { cmake \ + -S SPIRV-Tools -B _build \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_INSTALL_LIBDIR=lib \ @@ -35,16 +52,16 @@ build() { -D BUILD_SHARED_LIBS=ON \ -D SPIRV_TOOLS_BUILD_STATIC=OFF \ -D SPIRV_WERROR=OFF \ - -S SPIRV-Tools -B build - make -C build + -Wno-dev + make -C _build } check() { - make -C build test + make -C _build test } package() { - make -C build DESTDIR="$pkgdir" install + make -C _build DESTDIR="$pkgdir" install install -Dm644 "$srcdir"/SPIRV-Tools/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE } |