1 # Contributor: Luca Bennati <lucak3 AT gmail DOT com>
2 # Maintainer: Glaucous <glakke1 at gmail dot com>
7 pkgdesc="Graphics API Tracing"
9 url="https://github.com/apitrace/apitrace"
11 depends=('python2' 'libgl')
12 makedepends=('cmake>=2.8' 'git')
13 optdepends=('qt: GUI support' 'qjson: GUI support')
15 conflicts=('apitrace')
17 md5sums=('85536f1e169f24a548762a3cbbcd227c')
19 _gitroot='git://github.com/apitrace/apitrace.git'
24 msg "Connecting to GIT server...."
26 if [[ -d "${_gitname}" ]]; then
27 cd "${_gitname}" && git pull origin
28 msg "The local files are updated."
30 git clone "${_gitroot}" "${_gitname}"
33 msg "GIT checkout done or server timeout"
34 msg "Starting build..."
38 cmake -H"${_gitname}" -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE='/usr/bin/python2.7'
44 make DESTDIR="${pkgdir}/" install
46 mkdir -p "${pkgdir}"/usr/share/licenses/apitrace
47 msg "Moving LICENSE to /usr/share/licenses"
48 mv "${pkgdir}"/usr/share/{doc,licenses}/apitrace/LICENSE
51 # vim:set ts=2 sw=2 et: