updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / panache-llibs-git / PKGBUILD
blobccf75786dc14a4dcea84811ded429ad66797c9f0
1 # Contributor: feufochmar <feufochmar@d-20.fr>
2 pkgname=panache-llibs-git
3 pkgver=20100212
4 pkgrel=1
5 pkgdesc="Libraries for the Panache Desktop Environment"
6 arch=('i686' 'x86_64')
7 url="http://www.logram-project.org/"
8 license=('GPL')
9 depends=('qt' 'phonon')
10 makedepends=('git')
11 provides=()
12 source=('phonon')
13 md5sums=('d93494736281a8c5ab829c1b7c611bf8')
15 _gitroot="git://gitorious.org/logram/desktop.git"
16 _gitname="desktop"
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
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   # because <phonon> does not exists
33   cp $startdir/phonon $srcdir/desktop/llibs/plugins/panache/desktop/ghetto
34   sed s/\<phonon\>/\"phonon\"/ < $srcdir/desktop/llibs/plugins/panache/desktop/ghetto/ghetto.h > $srcdir/desktop/llibs/plugins/panache/desktop/ghetto/ghetto.h.new
35   cp $srcdir/desktop/llibs/plugins/panache/desktop/ghetto/ghetto.h.new $srcdir/desktop/llibs/plugins/panache/desktop/ghetto/ghetto.h
37   cd $_gitname
38   cd llibs
40   ## clear tmp
41   make clean
43   #
44   # BUILD HERE
45   #
47   make || return 1
48   make DESTDIR="$pkgdir" install || return 1