[arch-commits] Commit in lib32-apitrace/repos (2 files)

Laurent Carlier lcarlier at archlinux.org
Sun Nov 16 03:28:35 UTC 2014


    Date: Sunday, November 16, 2014 @ 04:28:34
  Author: lcarlier
Revision: 122627

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-apitrace/repos/multilib-x86_64/
  lib32-apitrace/repos/multilib-x86_64/PKGBUILD
    (from rev 122626, lib32-apitrace/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: lib32-apitrace/repos/multilib-x86_64/PKGBUILD (from rev 122626, lib32-apitrace/trunk/PKGBUILD)
===================================================================
--- multilib-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-x86_64/PKGBUILD	2014-11-16 03:28:34 UTC (rev 122627)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Luca Bennati <lucak3 AT gmail DOT com>
+# Contributor: Glaucous <glakke1 at gmail dot com>
+
+pkgname=lib32-apitrace
+pkgver=5.0
+pkgrel=2
+pkgdesc="Graphics API Tracing (32-bit)"
+arch=('x86_64')
+url="https://github.com/apitrace/apitrace"
+license=('custom')
+makedepends=('cmake' 'lib32-mesa-libgl' 'lib32-procps-ng' 'python2' 'gcc-multilib')
+source=("https://github.com/apitrace/apitrace/archive/${pkgver}.zip")
+md5sums=('2a60e8a4c90f841dc95fe659ba26607e')
+
+build() {
+  cd ${srcdir}/apitrace-*
+
+  export CC='gcc -m32'
+  export CXX='g++ -m32'
+  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+
+  cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE='/usr/bin/python2.7' \
+    -DLIB_SUFFIX=32 -DENABLE_GUI="no"
+  make -C build
+}
+
+package() {
+  depends=('python2' 'lib32-libgl' 'lib32-procps-ng' 'apitrace')
+
+  cd "${srcdir}"/apitrace-*
+  
+  make  -C build DESTDIR="${pkgdir}/" install
+
+  mv -v ${pkgdir}"/usr/bin/apitrace" ${pkgdir}"/usr/bin/apitrace32"
+  rm -r ${pkgdir}/usr/share/doc
+  rm ${pkgdir}/usr/bin/*retrace
+  
+  install -m755 -d ${pkgdir}"/usr/share/licenses/apitrace"
+  ln -s apitrace "$pkgdir/usr/share/licenses/apitrace/"${pkgname}
+}
+


More information about the arch-commits mailing list