updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / spokify-git / PKGBUILD
blob671fd46050f505049b5527bc3c0f888f27c0acc9
1 #Maintainer: jonkristian <jokr.nilsen at gmail dot com>
2 #Maintainer: emanuele < newdna1510 at yahoo dot it>
4 pkgname=spokify-git
5 pkgver=20100715
6 pkgrel=1
7 pkgdesc="Spotify client for KDE"
8 arch=('i686' 'x86_64')
9 url="http://git.ereslibre.es/spokify"
10 license=('GPL')
11 depends=('qt' 'automoc4' 'libspotify')
12 makedepends=('git' 'cmake')
13 source=()
14 md5sums=()
16 _gitroot="git://ereslibre.es/spokify"
17 _gitname="spokify"
19 build() {
20   cd $startdir/src
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"
37   cd $srcdir/$_gitname-build
38 #  sed -i 's#spotify/api.h#/usr/include/libspotify/api.h#g' mainwidget.h
39 #  sed -i 's#spotify/api.h#/usr/include/libspotify/api.h#g' mainwindow.h
40 #  sed -i 's#spotify/api.h#/usr/include/libspotify/api.h#g' playlistmodel.cpp
42 #  install -Dm644 $startdir/spokify.desktop  $startdir/pkg/usr/share/applications/kde4/spokify.desktop
44 #  cmake . -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix ) -DLIBSPOTIFY_INCLUDE_DIR=/usr/lib/ || return 1
45   cmake . -DCMAKE_INSTALL_PREFIX=$( kde4-config --prefix ) || return 1
46   make || return 1
47   make DESTDIR="$pkgdir" install