summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarqin2016-02-23 01:08:55 +0100
committerMarqin2016-02-23 01:08:55 +0100
commit8281322771b6193295a78f6d82043bd855ec598c (patch)
tree25c18472d8c84aeac564e090d7837174fc660b4d
parentfe78fa028dbe9fe1f96581537c66cf96f019321e (diff)
downloadaur-8281322771b6193295a78f6d82043bd855ec598c.tar.gz
add patch for Arch's GCC
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD35
-rw-r--r--patch1.diff16
3 files changed, 39 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f4755e68a13..2007b91cb9f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Thu Feb 18 13:16:55 UTC 2016
+# Mon Feb 22 23:00:00 UTC 2016
pkgbase = renderdoc
- pkgdesc = RenderDoc is a stand-alone graphics debugging tool.
+ pkgdesc = OpenGL and Vulkan debugging tool
pkgver = 0.27
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/baldurk/renderdoc
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 054f4a2f8d2..f77ba179e95 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,33 @@
+# Maintainer: Hubert Jarosz <marqin.pl+aur at gmail dot com> PGP: 0xFFECF63C1AAB83FF
+
pkgname=renderdoc
pkgver=0.27
-pkgrel=1
-pkgdesc="RenderDoc is a stand-alone graphics debugging tool."
+pkgrel=2
+pkgdesc="OpenGL and Vulkan debugging tool"
arch=(i686 x86_64)
url="https://github.com/baldurk/renderdoc"
license=("MIT")
depends=(qt5-x11extras)
-source=("https://github.com/baldurk/renderdoc/archive/v$pkgver.tar.gz" "$pkgname.desktop")
+makedepends=(git)
+source=("https://github.com/baldurk/renderdoc/archive/v$pkgver.tar.gz" "$pkgname.desktop" "patch1.diff")
sha256sums=('bcb3dba88d07c57ba84830578da9b49c56ff5071e33b3f97bdeb265fb0040a63'
- 'eab4941dc17fbbdcb9e34a698c3b304d212be54956daeb0c3b1cf5b7f2b00984')
+ 'eab4941dc17fbbdcb9e34a698c3b304d212be54956daeb0c3b1cf5b7f2b00984'
+ 'f166de9d2bb46b8d64e73e7e8afe026525ecfb58d47fc5dacf0b0fff7a57adf2')
build() {
- cd $pkgname-$pkgver
- make
+ cd $pkgname-$pkgver
+ patch -p1 < ../patch1.diff
+ make
}
package() {
- install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
- cd $pkgname-$pkgver/bin
- install -Dm644 librenderdoc.so "$pkgdir/usr/lib/librenderdoc.so"
- install -Dm755 qrenderdoc "$pkgdir/usr/bin/qrenderdoc"
- install -Dm755 renderdoccmd "$pkgdir/usr/bin/"
- cd ..
- install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
- cd docs/imgs
- install -Dm644 logo.png "$pkgdir/usr/share/icons/$pkgname.png"
+ install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
+ cd $pkgname-$pkgver/bin
+ install -Dm644 librenderdoc.so "$pkgdir/usr/lib/librenderdoc.so"
+ install -Dm755 qrenderdoc "$pkgdir/usr/bin/qrenderdoc"
+ install -Dm755 renderdoccmd "$pkgdir/usr/bin/"
+ cd ..
+ install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+ cd docs/imgs
+ install -Dm644 logo.png "$pkgdir/usr/share/icons/$pkgname.png"
}
diff --git a/patch1.diff b/patch1.diff
new file mode 100644
index 00000000000..f15a641e5e3
--- /dev/null
+++ b/patch1.diff
@@ -0,0 +1,16 @@
+ renderdoc/3rdparty/glslang/glslang/MachineIndependent/intermOut.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/renderdoc/3rdparty/glslang/glslang/MachineIndependent/intermOut.cpp b/renderdoc/3rdparty/glslang/glslang/MachineIndependent/intermOut.cpp
+index dd0769f..c06a0a1 100644
+--- a/renderdoc/3rdparty/glslang/glslang/MachineIndependent/intermOut.cpp
++++ b/renderdoc/3rdparty/glslang/glslang/MachineIndependent/intermOut.cpp
+@@ -48,7 +48,7 @@ namespace {
+ bool is_positive_infinity(double x) {
+ #ifdef _MSC_VER
+ return _fpclass(x) == _FPCLASS_PINF;
+-#elif defined __ANDROID__
++#elif defined __ANDROID__ || defined __linux__
+ return std::isinf(x) && (x >= 0);
+ #else
+ return isinf(x) && (x >= 0);