diff options
author | Mark Wagie | 2021-04-28 11:06:15 -0600 |
---|---|---|
committer | Mark Wagie | 2021-04-28 11:06:15 -0600 |
commit | 784fb4a9bc484c4a9db572e33793c7cd2aa94bd2 (patch) | |
tree | 343adf745292cc32c7dba67171ae6b23196533de | |
download | aur-784fb4a9bc484c4a9db572e33793c7cd2aa94bd2.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 44 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8521191bf969 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = vulkan-caps-viewer-wayland + pkgdesc = Vulkan Hardware Capability Viewer + pkgver = 3.01 + pkgrel = 1 + url = http://vulkan.gpuinfo.org + arch = x86_64 + license = GPL2 + makedepends = git + depends = vulkan-icd-loader + depends = qt5-wayland + provides = vulkan-caps-viewer + conflicts = vulkan-caps-viewer + source = vulkan-caps-viewer::git+https://github.com/SaschaWillems/VulkanCapsViewer.git#tag=3.01 + source = git+https://github.com/KhronosGroup/Vulkan-Headers.git + sha256sums = SKIP + sha256sums = SKIP + +pkgname = vulkan-caps-viewer-wayland + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..4dab8d6386e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7743d86c55f7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> +# Co-Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch> +pkgname=vulkan-caps-viewer-wayland +pkgver=3.01 +pkgrel=1 +pkgdesc="Vulkan Hardware Capability Viewer" +arch=('x86_64') +url="http://vulkan.gpuinfo.org" +license=('GPL2') +depends=('vulkan-icd-loader' 'qt5-wayland') +makedepends=('git') +provides=("${pkgname%-*}") +conflicts=("${pkgname%-*}") +source=("${pkgname%-*}::git+https://github.com/SaschaWillems/VulkanCapsViewer.git#tag=$pkgver" + 'git+https://github.com/KhronosGroup/Vulkan-Headers.git') +sha256sums=('SKIP' + 'SKIP') + +prepare() { + cd "$srcdir/${pkgname%-*}" + git submodule init + git config submodule.Vulkan-Headers.url "$srcdir/Vulkan-Headers" + git submodule update +} + +build() { + cd "$srcdir/${pkgname%-*}" + qmake \ + QMAKE_CFLAGS="$CFLAGS" \ + QMAKE_CXXFLAGS="$CXXFLAGS" \ + QMAKE_LFLAGS="$LDFLAGS" \ + PREFIX=/usr \ + DEFINES+=WAYLAND + make +} + +package() { + cd "$srcdir/${pkgname%-*}" + make INSTALL_ROOT="$pkgdir/" install + + # There's a bug preventing this from being installed automatically + install -Dm644 gfx/android_icon_256.png \ + "$pkgdir"/usr/share/icons/hicolor/256x256/apps/vulkanCapsViewer.png +} |