updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / clementine-git / PKGBUILD
blob25f613f54ba5a648c6fa06db278e57561bffb492
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>
6 pkgname=clementine-git
7 _realname=clementine-player
8 pkgver=20120110
9 pkgrel=1
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/"
13 license=('GPL')
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'
21             )
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'
29             #)
31 provides=('clementine')
32 conflicts=('clementine' 'clementine-svn')
33 replaces=('clementine' 'clementine-svn')
34 source=()
35 sha512sums=()
36 install=clementine.install
38 _gitroot="https://code.google.com/p/${_realname}"
39 _gitname=${_realname}
41 build() {
42   cd "${srcdir}"
43   msg "Connecting to GIT server...."
45   if [[ -d "${_gitname}" ]]; then
46     cd "${_gitname}" && git pull origin
47     msg "The local files are updated."
48   else
49     git clone "${_gitroot}" "${_gitname}"
50   fi
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
61   make
64 package() {
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: