1 # Mantainer: Adria Arrufat <swiftscythe@gmail.com>
2 # Contributor: Ike Devolder <ike.devolder@gmail.com>
3 # Contributor: Daniel Hill <daniel.hill@orcon.net.nz>
4 # Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
7 _realname=clementine-player
10 pkgdesc="A modern music player and library organiser and a port of Amarok 1.4, with some features rewritten to take advantage of Qt4."
11 arch=('i686' 'x86_64')
12 url="http://code.google.com/p/clementine-player/"
14 depends=('gstreamer0.10-base' 'taglib' 'glew' 'liblastfm'
15 'libmtp' 'libplist' 'hicolor-icon-theme' 'qt'
16 'qjson' 'libcdio' 'protobuf' 'qca' 'qca-ossl')
17 optdepends=('gstreamer0.10-base-plugins: for more open formats'
18 'gstreamer0.10-good-plugins: for use with "Good" plugin libraries'
19 'gstreamer0.10-bad-plugins: for use with "Bad" plugin libraries'
20 'gstreamer0.10-ugly-plugins: for use with "Ugly" plugin libraries'
22 makedepends=('git' 'boost' 'cmake' 'mesa')
23 # Uncomment next lines to enable more features
24 #makedepends=(${makedepends} 'libspotify' 'libgpod' 'libimobiledevice')
25 #optdepends=(${optdepends}
26 #'libspotify: for Spotify support'
27 #'libgpod: for iPode support'
28 #'libimobiledevice: for iPhone and iPod Touch support'
31 provides=('clementine')
32 conflicts=('clementine' 'clementine-svn')
33 replaces=('clementine' 'clementine-svn')
36 install=clementine.install
38 _gitroot="https://code.google.com/p/${_realname}"
43 msg "Connecting to GIT server...."
45 if [[ -d "${_gitname}" ]]; then
46 cd "${_gitname}" && git pull origin
47 msg "The local files are updated."
49 git clone "${_gitroot}" "${_gitname}"
52 msg "GIT checkout done or server timeout"
53 msg "Starting build..."
55 rm -rf "${srcdir}/${_gitname}-build"
56 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
57 cd "${srcdir}/${_gitname}-build"
59 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DBUILDBOT_REVISION=${pkgver} \
60 -DENABLE_REMOTE=ON -DENABLE_SPOTIFY=OFF -DENABLE_SPOTIFY_BLOB=OFF
65 cd "${srcdir}/${_gitname}-build"
67 #sed -i -e '/"\/.*version[[:digit:]]*[-]*[[:digit:]]*bit/ s//"${CMAKE_INSTALL_PREFIX}\/bin/' -e '/clementine-spotifyblob/ s/$ENV{DESTDIR}//g' ext/clementine-spotifyblob/cmake_install.cmake
68 make DESTDIR="${pkgdir}" install
71 # vim:set ts=2 sw=2 et: