updated on Sat Jan 21 00:12:38 UTC 2012
[aur-mirror.git] / lib32-freeglut / PKGBUILD
blob33e91a792507f71ec12602ecfcdd440a88da5c7d
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Marco Maso <demind@gmail.com>
3 # Contributor: Ian Taylor <ian@lorf.org>
5 _name=freeglut
6 pkgname=lib32-$_name
7 pkgver=2.8.0
8 pkgrel=1
9 pkgdesc="Provides functionality for small OpenGL programs. Multilib."
10 arch=('x86_64')
11 url="http://freeglut.sourceforge.net/"
12 license=('custom:MIT')
13 depends=("$_name" 'lib32-mesa' 'lib32-libxi' 'lib32-libxrandr')
14 makedepends=('gcc-multilib')
15 options=('!libtool')
16 source=("http://downloads.sourceforge.net/freeglut/$_name-$pkgver.tar.gz")
17 md5sums=('5db8651af306bc403fbfd36934a20e1d')
19 build() {
20   cd "$srcdir/$_name-$pkgver"
22   export CC='gcc -m32'
23   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
25   ./configure --prefix=/usr \
26               --libdir=/usr/lib32 \
27               --disable-static
28   make
31 package() {
32   cd "$srcdir/$_name-$pkgver"
34   make DESTDIR="$pkgdir/" install
36   # rm unneeded header files
37   rm -rf "$pkgdir/usr/include"
39   # license
40   install -Dm644 COPYING \
41     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"