[arch-commits] Commit in lib32-mesa-demos/repos (2 files)
Laurent Carlier
lcarlier at nymeria.archlinux.org
Sun Feb 24 15:53:31 UTC 2013
Date: Sunday, February 24, 2013 @ 16:53:31
Author: lcarlier
Revision: 84789
archrelease: copy trunk to multilib-testing-x86_64
Added:
lib32-mesa-demos/repos/multilib-testing-x86_64/
lib32-mesa-demos/repos/multilib-testing-x86_64/PKGBUILD
(from rev 84788, lib32-mesa-demos/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: lib32-mesa-demos/repos/multilib-testing-x86_64/PKGBUILD (from rev 84788, lib32-mesa-demos/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD (rev 0)
+++ multilib-testing-x86_64/PKGBUILD 2013-02-24 15:53:31 UTC (rev 84789)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+
+_pkgbasename=mesa-demos
+pkgname=lib32-$_pkgbasename
+pkgver=8.1.0
+pkgrel=1
+arch=(x86_64)
+pkgdesc="Mesa demos and tools (32-bit)"
+url="http://mesa3d.sourceforge.net"
+license=('custom')
+makedepends=(gcc-multilib 'lib32-mesa-libgl>=9.1' 'lib32-glew' 'libgl>=9.1')
+source=(ftp://ftp.freedesktop.org/pub/mesa/demos/${pkgver}/mesa-demos-${pkgver}.tar.bz2)
+md5sums=('9df33ba69a26bbfbc7c8148602e59542')
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd "${srcdir}/mesa-demos-${pkgver}"
+ ./configure --prefix=/usr \
+ --enable-gles1 \
+ --enable-gles2
+
+ make
+}
+
+package() {
+ depends=('lib32-glew' mesa-demos)
+
+ cd "${srcdir}/mesa-demos-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ for i in "$pkgdir/usr/bin/"*; do
+ mv "$i" "$i"32
+ done
+
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}
More information about the arch-commits
mailing list