updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / sc3-plugins-git / PKGBUILD
blobfb3953d0d05519132a692ef6d8e0daa3c928dc3f
1 #Contributor: Bernardo Barros <bernardobarros@NOSPAM.gmail.com>
3 pkgname=sc3-plugins-git
4 pkgver=20120101
5 pkgrel=1
6 pkgdesc="Plugins for SuperCollider (Git version)"
7 url="http://supercollider.sourceforge.net/"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 depends=('supercollider>=3.5')
11 conflicts=('supercollider-with-extras-git')
12 provides=('supercollider-with-extras-git')
14 # SC3-plugins:
15 _gitroot="git://sc3-plugins.git.sourceforge.net/gitroot/sc3-plugins/sc3-plugins"
16 _gitname="sc3-plugins"
19 build() {
21   if [ -d $_gitname ] ; then
22     (cd $_gitname && git pull origin && git submodule update)
23     msg "The local files are updated."
24   else
25     git clone --recursive $_gitroot
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf $_gitname-build
33   cd $_gitname
34   git submodule init && git submodule update
35   cd ..
37   cp -r $_gitname $_gitname-build
38   cd $_gitname-build
40   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DSC_PATH=/home/smoge/src/supercollider -DSUPERNOVA=1 -DAY=1 
41   make
44 package() {
46   cd $_gitname-build
48   make DESTDIR=$pkgdir/ install