updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / oalwrapper-git / PKGBUILD
blobdfd513f67e2a0b1a197482c475d0d33582fde05e
1 # Maintainer: Hilton Medeiros <medeiros.hilton AT gmail DOT com>
3 pkgname=oalwrapper-git
4 pkgver=20100527
5 pkgrel=1
6 pkgdesc="A wrapper library for OpenAL. Makes using OpenAL a lot easier."
7 arch=('i686' 'x86_64')
8 url="http://github.com/FrictionalGames/OALWrapper"
9 license=('ZLIB')
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"
18 _gitname="OALWrapper"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
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
39   rm -fr include/AL
40   cp -f ../CMakeLists.txt .
42   cmake . -DCMAKE_INSTALL_PREFIX=/usr
43   make || return 1
46 package() {
47   cd "$srcdir/$_gitname-build"
49   make DESTDIR="$pkgdir/" install
50   install -D LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE