updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / gosu / PKGBUILD
blobc695ba4271f806b877f28b83cbc765389b1ce46d
1 # Maintainer: Justin Wilcox <nat1192@gmail.com>
2 # Contributor: Henning Bekel <h dot bekel at googlemail dot com>
3 # Contributor: Paolo Giangrandi <peoro.noob@gmail.com>
5 pkgname=gosu
6 pkgver=0.7.41
7 pkgrel=1
8 pkgdesc="2D game development library for the C++ programming language."
9 arch=('i686' 'x86_64')
10 url="http://libgosu.org/"
11 license="MIT"
12 depends=('sdl_ttf' 'pango' 'libgl' 'libxinerama' 'openal' 'libvorbis' 'libsndfile' 'freeimage')
13 source=("http://www.libgosu.org/downloads/gosu-linux-$pkgver.tar.gz")
14 #See comment below
15 noextract=("gosu-linux-$pkgver.tar.gz")
16 md5sums=('18779d0fa339dc505ddf9e3ff1b2cb24')
18 build() {
19   #As of 0.7.41 (at least), the upstream tarballs can't be extracted by 
20   # bsdtar. Use tar instead:
21   cd "${srcdir}"
22   tar -xzf "gosu-linux-${pkgver}.tar.gz"
24   cd "${pkgname}/linux"
25   ./configure --prefix=/usr
26   make
29 package () {
30   install -D -m644 $srcdir/$pkgname/lib/libgosu.a $pkgdir/usr/lib/libgosu.a
31   install -D -m755 $srcdir/$pkgname/lib/libgosu.so $pkgdir/usr/lib/libgosu.so
32   install -D -m755 $srcdir/$pkgname/bin/gosu-config $pkgdir/usr/bin/gosu-config
34   install -d $pkgdir/usr/include/Gosu
35   install -D -m644 $srcdir/$pkgname/Gosu/*.hpp $pkgdir/usr/include/Gosu
37   install -D -m 644 $srcdir/$pkgname/COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING