summaryrefslogtreecommitdiff
path: root/multilib/lib32-glu/PKGBUILD
blob: dcf535b678ae9c5de502b03212598c02d58f5651 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
}