1 #Maintainer: jonkristian <jokr.nilsen at gmail dot com>
2 #Maintainer: emanuele < newdna1510 at yahoo dot it>
7 pkgdesc="Spotify client for KDE"
9 url="http://git.ereslibre.es/spokify"
11 depends=('qt' 'automoc4' 'libspotify')
12 makedepends=('git' 'cmake')
16 _gitroot="git://ereslibre.es/spokify"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
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
47 make DESTDIR="$pkgdir" install