void-packages/srcpkgs/clementine/template
2016-09-19 05:57:22 +02:00

37 lines
1.2 KiB
Bash

# Template file for 'clementine'
pkgname=clementine
version=1.3.1
revision=4
build_style=cmake
hostmakedepends="git cmake sparsehash pkg-config"
makedepends="chromaprint-devel boost-devel gst-plugins-base1-devel liblastfm-devel
qt-devel qt-webkit-devel glew-devel qjson-devel sqlite-devel protobuf-devel libplist-devel
libusbmuxd-devel libmtp-devel libcdio-devel qca-devel pulseaudio-devel glu-devel
taglib-devel crypto++-devel libspotify-devel libechonest-devel"
depends="desktop-file-utils"
short_desc="A modern music player and library organizer"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="https://www.clementine-player.org/"
wrksrc="Clementine-$version"
distfiles="https://github.com/clementine-player/Clementine/archive/$version.tar.gz"
checksum=f885931a9ab7c88607d07b50c64fcce46fc05f13dd2c0a04188c94eff938f37c
patch_args="-p1"
nopie=yes
pre_configure() {
sed -i 's|AMAZON_CLOUD_DRIVE OFF|AMAZON_CLOUD_DRIVE ON|g' CMakeLists.txt
}
post_install() {
rm -r $DESTDIR/builddir
}
clementine-spotify_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - spotify extension"
repository="nonfree"
pkg_install() {
vmove usr/bin/clementine-spotifyblob
}
}