updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / vsxu-git / PKGBUILD
blobeba8349deb0de06cd1eaa8dffdf7f86674fdcee8
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=vsxu
4 pkgname=$_pkg-git
5 pkgver=20110728
6 pkgrel=1
7 pkgdesc="A free to use program that lets you create and perform real-time audio visual presets."
8 arch=(i686 x86_64)
9 url="http://$_pkg.com/"
10 license=('GPL')
11 depends=('libpulse' 'freetype2' 'libjpeg' 'glfw' 'libpng12' 'glew')
12 makedepends=('git' 'cmake')
13 provides=("$_pkg")
15 _gitroot="git://git.vsxu.com/$_pkg"
16 _gitname="$_pkg"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   #
37   # BUILD HERE
38   #
40   # Does not build with -Wl,--as-needed
41   export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
43   # build against libpng12
44   sed -i "s| png|&12|" {artiste,player}/CMakeLists.txt
45   sed -i "s|<png\.h>|<libpng12/png\.h>|" engine_graphics/src/glpng.cpp
47   ./configure --prefix=/usr
48   make
51 package() {
52   cd "$srcdir/$_gitname-build"
53   make DESTDIR="$pkgdir/" install
54