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

Laurent Carlier lcarlier at archlinux.org
Wed Aug 3 09:14:29 UTC 2016


    Date: Wednesday, August 3, 2016 @ 09:14:28
  Author: lcarlier
Revision: 184963

archrelease: copy trunk to multilib-staging-x86_64

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

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

Copied: lib32-apitrace/repos/multilib-staging-x86_64/PKGBUILD (from rev 184962, lib32-apitrace/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-staging-x86_64/PKGBUILD	2016-08-03 09:14:28 UTC (rev 184963)
@@ -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=7.1
+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=("apitrace-$pkgver.tar.gz::https://github.com/apitrace/apitrace/archive/${pkgver}.tar.gz")
+md5sums=('c5d44dece1e1ca7c63f8b8efbd06ac5a')
+
+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