Permalink
Browse files

added the clamz client

  • Loading branch information...
Jean-Christophe Petkovich
Jean-Christophe Petkovich committed Apr 21, 2010
1 parent 0c6674a commit 54d63b264e765b943bfabfdfb2c37950b91e7fb4
Showing with 66 additions and 0 deletions.
  1. +2 −0 net-misc/clamz/Manifest
  2. +64 −0 net-misc/clamz/clamz-0.3.ebuild
View
@@ -0,0 +1,2 @@
+DIST clamz-0.3.tar.gz 70781 RMD160 4e6972309ff2a76945976bfff9f14d8fd4fcddc6 SHA1 cbf5e86c73a4a75cb5e6e8ec38661204a90cc318 SHA256 e6b46033ccd825bffcec047bc87ac0d4ea56e8a95d2f44ed3a94575d775069ef
+EBUILD clamz-0.3.ebuild 1460 RMD160 9aecc9f4d22420c0df39d0ceda0d9f6fa8349988 SHA1 4589d621e159628424c74e241f59cd049d3cd811 SHA256 097da87e7c808b40e7737a819f6f19214721b0e812ff84e9368447203539d95d
@@ -0,0 +1,64 @@
+#Copyright 1999-2009
+#Distributed under the terms of the GNU General Public License v2
+#$Header:$
+
+inherit fdo-mime
+
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="~x86 ~amd64"
+DESCRIPTION="Command-line downloader for the Amazon.com MP3 music store"
+SRC_URI="http://clamz.googlecode.com/files/${P}.tar.gz"
+HOMEPAGE="http://code.google.com/p/clamz/"
+DEPEND="net-misc/curl dev-libs/libgcrypt dev-libs/expat"
+IUSE=""
+
+pkg_nofetch()
+{
+ einfo "Download clamz at the following site"
+ einfo ${HOMEPAGE}
+ einfo ""
+ einfo "Then place the file ${SRC_URI}"
+ einfo "into ${DISTDIR} and restart the emerge."
+}
+
+src_unpack()
+{
+ unpack ${A}
+ cd "${S}"
+}
+
+src_compile()
+{
+ econf || die "econf failed"
+}
+
+src_install()
+{
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ rm -rf "${D}usr/share/applications/mimeinfo.cache"
+ rm -rf "${D}usr/share/mime/subclasses"
+ rm -rf "${D}usr/share/mime/globs"
+ rm -rf "${D}usr/share/mime/globs2"
+ rm -rf "${D}usr/share/mime/magic"
+ rm -rf "${D}usr/share/mime/XMLnamespaces"
+ rm -rf "${D}usr/share/mime/aliases"
+ rm -rf "${D}usr/share/mime/types"
+ rm -rf "${D}usr/share/mime/generic-icons"
+ rm -rf "${D}usr/share/mime/icons"
+ rm -rf "${D}usr/share/mime/treemagic"
+ rm -rf "${D}usr/share/mime/mime.cache"
+}
+
+pkg_postinst()
+{
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm()
+{
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}

0 comments on commit 54d63b2

Please sign in to comment.