summaryrefslogtreecommitdiff
path: root/community/apitrace/PKGBUILD
blob: 1676111a20a1418fb579e32e3eaa9e4367b6564d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 85781 2013-03-07 07:29:48Z 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=3.0
pkgrel=1
pkgdesc="Graphics API Tracing"
arch=('i686' 'x86_64' 'mips64el')
url="https://github.com/apitrace/apitrace"
license=('custom')
makedepends=('cmake' 'mesa' 'libgl>=9.1' 'python2' 'qtwebkit' 'qjson')
optdepends=('qtwebkit: GUI support' 'qjson: GUI support')
source=("https://github.com/apitrace/$pkgname/zipball/$pkgver"
	gcc-4.7-fix.patch)
md5sums=('d3c61c88684de9dc2641d974292b0c49'
         '27a9a7aa14355b56fb48e2e17ff9911e')

build() {
  cd ${srcdir}/apitrace-*

  # Merged upstream
  patch -Np1 -i ${srcdir}/gcc-4.7-fix.patch

  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/"
}