You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/clamz/clamz-0.5.ebuild

45 lines
956 B

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit fdo-mime
DESCRIPTION="Command-line downloader for the Amazon.com MP3 music store"
HOMEPAGE="https://code.google.com/p/clamz/"
SRC_URI="https://clamz.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-libs/expat
net-misc/curl
dev-libs/libgcrypt:0"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_configure() {
UPDATE_MIME_DATABASE=true \
UPDATE_DESKTOP_DATABASE=true \
econf
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
dodoc README
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
einfo "To link clamz with your amazon.com account, visit:"
einfo " http://www.amazon.com/gp/dmusic/after_download_manager_install.html"
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}