summaryrefslogtreecommitdiff
path: root/community/apitrace/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/apitrace/PKGBUILD')
-rw-r--r--community/apitrace/PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/apitrace/PKGBUILD b/community/apitrace/PKGBUILD
new file mode 100644
index 000000000..43622bdca
--- /dev/null
+++ b/community/apitrace/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 89930 2013-05-05 19:53:46Z lcarlier $
+# Maintainer: Laurent Carlier <lordheavym@gmail.com>
+# Contributor: Luca Bennati <lucak3 AT gmail DOT com>
+# Contributor: Glaucous <glakke1 at gmail dot com>
+
+pkgname=apitrace
+pkgver=4.0
+pkgrel=1
+pkgdesc="Graphics API Tracing"
+arch=('i686' 'x86_64')
+url="https://github.com/apitrace/apitrace"
+license=('custom')
+makedepends=('cmake' 'mesa' 'libgl' 'python2' 'qtwebkit' 'qjson')
+optdepends=('qtwebkit: GUI support' 'qjson: GUI support')
+source=("https://github.com/apitrace/apitrace/archive/${pkgver}.zip")
+md5sums=('5b2e212d91d2f184d8608c712eab69a0')
+
+build() {
+ cd ${srcdir}/apitrace-*
+
+ cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE='/usr/bin/python2'
+ make -C build
+}
+
+package() {
+ depends=('python2' 'libgl')
+ cd ${srcdir}/apitrace-*
+
+ make -C build DESTDIR="${pkgdir}/" install
+
+ install -m755 -d "${pkgdir}/usr/share/licenses/apitrace"
+ install -m644 LICENSE "${pkgdir}/usr/share/licenses/apitrace/"
+}