updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / alure-git / PKGBUILD
blob02854f7af2fc1d6f3d328c16d6a0279d89b3e912
1 # Contributor: Markus Martin
2 # Maintainer: kfgz <kfgz at interia pl>
4 pkgname=alure-git
5 pkgver=20110615
6 pkgrel=1
7 pkgdesc="Utility library to help manage common tasks with OpenAL applications."
8 arch=('i686' 'x86_64')
9 url="http://kcat.strangesoft.net/alure.html"
10 license=('LGPL')
11 depends=('openal')
12 makedepends=('cmake')
13 conflicts=('alure')
14 provides=('alure')
15 optdepends=('libsndfile: Uncompressed audio support'
16             'libsdnfile: OGG Vorbis support'
17             'flac: FLAC support')
19 _gitroot="git://repo.or.cz/alure.git alure"
20 _gitname="alure"
22 build() {
23   cd ${srcdir}
24   msg "Connecting to repo.or.cz GIT server...."
26   if [ -d ${srcdir}/${_gitname} ] ; then
27    cd ${_gitname} && git pull origin
28    msg "The local files are updated."
29   else
30    git clone ${_gitroot}
31   fi
33   msg "GIT checkout done or server timeout"
35   msg "Creating build directory"
36   if [ -d ${srcdir}/${_gitname}-build ]; then rm -rf ${srcdir}/${_gitname}-build; fi
37   cp -R ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
38   
39   msg "Starting make..."
40   cd ${srcdir}/${_gitname}-build
41   cmake . -DCMAKE_INSTALL_PREFIX=/usr
42   make
44         
45 package() {
46   cd ${srcdir}/${_gitname}-build
47   make DESTDIR=${pkgdir} install