# Depends on: git cmake boost qtbase qtx11extras qttools sparsehash mesa libcdio libmtp protobuf taglib chromaprint glew gstreamer gstreamer-plugins-base gstreamer-plugins-good gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-plugins-libav gvfs crypto++

description="A music player and library organizer"
url="http://www.clementine-player.org/"
packager="tnut <tnut@nutyx.org>"
contributors="Pierre B"

run=(crypto++ gstreamer-plugins-base gstreamer-plugins-good gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-plugins-libav gvfs)

name=clementine
version=1.3.1-516

source=()

build() {
   
   git clone -b qt5  https://github.com/clementine-player/Clementine.git
   cd Clementine

   for i in `find data/schema/ -type f -exec grep -l tokenize {} \;`
   do
       sed -i "s@=unicode@=unicode61@" $i
   done

   mkdir build
   cd    build

   cmake .. \
      -DCMAKE_INSTALL_PREFIX=/usr  \
      -DCMAKE_BUILD_TYPE='Release' \
      -Wno-dev

   make || make -j1
   make DESTDIR=$PKG install
}
