diff options
author | Mark Wagie | 2021-04-28 11:04:40 -0600 |
---|---|---|
committer | Mark Wagie | 2021-04-28 11:04:40 -0600 |
commit | d96a8fdee693a82caa9ed28b28226c2d8684535e (patch) | |
tree | 502543c24d7e01cec41567bbc6a11f079ba9b77a | |
download | aur-d96a8fdee693a82caa9ed28b28226c2d8684535e.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..8042d6ac69a3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = vulkan-caps-viewer-x11 + 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-x11extras + 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-x11 + 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..bd0f6f7f62c9 --- /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-x11 +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-x11extras') +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+=X11 + 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 +} |