updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / agar / PKGBUILD
blobf4afc7e9bca07ffcb125641b191426d7280b3d6a
1 # Maintainer: josephgbr <rafael.f.f1@gmail.com>
2 # Contributor: scj <scj@archlinux.us>
4 pkgname=agar
5 pkgver=1.4.1
6 pkgrel=2
7 pkgdesc="Modern cross-platform toolkit for graphical applications implemented in C, C++ and Ada"
8 arch=('i686' 'x86_64')
9 url="http://libagar.org"
10 license=('custom:BSD')
11 depends=('sh')
12 optdepends=('sdl: If you want to use the sdlfb or sdlgl'
13             'freetype2: Improve Font Rendering'
14             'libgl: Mesa OpenGL support for sdlgl (intel-dri, nouveau-dir, etc.)'
15             'nvidia-utils: Nvidia proprietary OpenGL support for sdlgl'
16             'catalyst-utils: AMD/ATI proprietary OpenGL support for sdlgl')
17 conflicts=('agar-svn')
18 options=('!emptydirs' '!libtool')
19 source=("http://stable.hypertriton.com/$pkgname/$pkgname-$pkgver.tar.gz")
20 md5sums=('ce71fb11ad79c926a968a4ed29053820')
22 build() {
23   cd "$srcdir/$pkgname-$pkgver"
24   
25   # Necessary workaround for gcc 4.6
26   export CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
27   ./configure --prefix=/usr \
28           --with-gl=/usr \
29           --bindir=/usr/bin \
30           --libdir=/usr/lib \
31           --sharedir=/usr/share \
32           --with-catman=no \
33           --with-gl=/usr # set "prefix_gl" for /usr/lib/libGL.so
35   make
38 package() {
39   cd "$srcdir/$pkgname-$pkgver"
40   
41   # make install won't create these folders, even though they are required
42   mkdir -p "$pkgdir/usr"/{bin,lib}
43   mkdir -p "$pkgdir/usr/share/man"/man{3,5}
44   mkdir -p "$pkgdir/usr/share/agar/fonts"
45   
46   make  DESTDIR="$pkgdir" MANDIR=/usr/share/man LIBDIR=/usr/lib install
47   install -Dm644 ada-core/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"