summaryrefslogtreecommitdiff
path: root/multilib/lib32-glu/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'multilib/lib32-glu/PKGBUILD')
-rw-r--r--multilib/lib32-glu/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/multilib/lib32-glu/PKGBUILD b/multilib/lib32-glu/PKGBUILD
new file mode 100644
index 000000000..dcf535b67
--- /dev/null
+++ b/multilib/lib32-glu/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 77675 2012-10-13 12:37:35Z bluewind $
+# Maintainer: Laurent Carlier <lordheavym@gmail.com>
+
+pkgname=lib32-glu
+pkgver=9.0.0
+pkgrel=1
+pkgdesc="Mesa OpenGL utility library (32 bits)"
+arch=('x86_64')
+url="http://mesa.freedesktop.org/"
+license=('LGPL')
+depends=('lib32-libgl')
+makedepends=('gcc-multilib' 'lib32-mesa')
+options=('!libtool')
+source=(ftp://ftp.freedesktop.org/pub/mesa/glu/glu-$pkgver.tar.bz2)
+sha256sums=('1f7ad0d379a722fcbd303aa5650c6d7d5544fde83196b42a73d1193568a4df12')
+
+build() {
+ cd ${srcdir}/glu-$pkgver
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure --prefix=/usr --disable-static \
+ --libdir=/usr/lib32
+ make
+}
+
+check() {
+ cd "$srcdir/glu-$pkgver"
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ make -k check
+}
+
+package() {
+ cd ${srcdir}/glu-$pkgver
+
+ make DESTDIR=${pkgdir} install
+
+ rm -rf ${pkgdir}/usr/include
+}