1 # Maintainer: Hilton Medeiros <medeiros.hilton AT gmail DOT com>
6 pkgdesc="A wrapper library for OpenAL. Makes using OpenAL a lot easier."
8 url="http://github.com/FrictionalGames/OALWrapper"
10 depends=('freealut' 'libvorbis' 'sdl')
11 makedepends=('git' 'cmake')
12 provides=('oalwrapper')
13 conflicts=('oalwrapper')
14 source=(CMakeLists.txt)
15 md5sums=('7cc8b02b9829c62016b1022b107fa22b')
17 _gitroot="git://github.com/FrictionalGames/OALWrapper"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
38 sed -i '/efx-creative.h/d' include/OALWrapper/OAL_Types.h
40 cp -f ../CMakeLists.txt .
42 cmake . -DCMAKE_INSTALL_PREFIX=/usr
47 cd "$srcdir/$_gitname-build"
49 make DESTDIR="$pkgdir/" install
50 install -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE