# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit eutils fdo-mime pax-utils unpacker DESCRIPTION="Musixmatch is the world’s largest lyrics platform - where you can search, enjoy, and share lyrics from any track, anywhere in the world." HOMEPAGE="http://about.musixmatch.com/apps/" SRC_URI="https://adv.musixmatch.com/r/wwwmxm -> ${P}_amd64.deb" LICENSE="Musixmatch" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="spotify" RESTRICT="mirror strip" DEPEND="" RDEPEND="${DEPEND} dev-util/desktop-file-utils x11-themes/hicolor-icon-theme x11-libs/libnotify[abi_x86_32(-)] gnome-base/gconf[abi_x86_32(-)] dev-libs/nss[abi_x86_32(-)] net-print/cups[abi_x86_32(-)] spotify? ( media-sound/spotify )" S=${WORKDIR}/ QA_PREBUILT="opt/musixmatch/" src_install() { MUSIXMATCH_PKG_HOME=opt/Musixmatch # install in /opt/Musixmatch MUSIXMATCH_HOME=/opt/Musixmatch domenu usr/share/applications/musixmatch.desktop dodoc usr/share/doc/musixmatch/changelog.gz insinto ${MUSIXMATCH_HOME} doins -r ${MUSIXMATCH_PKG_HOME}/* fperms +x ${MUSIXMATCH_HOME}/musixmatch local size for size in 16 24 32 48 64 96 128 256 512; do newicon -s ${size} "${S}/usr/share/icons/hicolor/${size}x${size}/apps/musixmatch.png" \ "musixmatch.png" done } pkg_postinst() { fdo-mime_mime_database_update fdo-mime_desktop_database_update } pkg_postrm() { fdo-mime_mime_database_update fdo-mime_desktop_database_update }