# Maintainer: zan # Contributor: Jacob Henner # Contributor: Eduardo Sánchez Muñoz # Contributor: Maxime Gauduin # Contributor: Stéphane Gaudreault # Contributor: BlackEagle # Contributor: Dany Martineau # Based on community/clementine PKGBUILD pkgname=clementine-git pkgver=1.4.0rc1.r296.g68d375c43.0.g68d375c43 pkgrel=1 pkgdesc='A modern music player and library organizer' url='http://www.clementine-player.org/' license=(GPL) arch=(x86_64) depends=(chromaprint glew gst-plugins-base-libs libmygpo-qt5 protobuf qt5-x11extras) makedepends=(boost cmake git) optdepends=('libcdio: for CD support' 'libgpod: for iPhone and iPod Touch support' 'liblastfm-qt5: for LastFM support' 'libmtp: for MTP support' 'crypto++: for Spotify plugin') conflicts=(clementine) provides=(clementine) _name=Clementine source=("git+https://github.com/clementine-player/$_name.git" "close-fix.diff") sha256sums=('SKIP' '587c3724483825c2101fc15b8ef3b04b15a4dee34457285f94da6dd9b6db656c') pkgver() { cd $_name git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd $_name patch -p1 -i $srcdir/close-fix.diff } build() { cmake -B build -S $_name -DENABLE_SPOTIFY_BLOB=off cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build }