Import ports/net/clamz. ok abieber@

Clamz is a little command-line program to download MP3 files from
Amazon.com's music store. It is intended to serve as a substitute for
Amazon's official MP3 Downloader, which is not free software (and
therefore is only available in binary form for a limited set of
platforms.) Clamz can be used to download either individual songs or
complete albums that you have purchased from Amazon.
This commit is contained in:
jturner 2013-10-19 16:33:52 +00:00
parent 6bbbe88d0f
commit 4f72f8582f
5 changed files with 82 additions and 0 deletions

34
net/clamz/Makefile Normal file
View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/10/19 16:33:52 jturner Exp $
COMMENT = downloader for the Amazon.com MP3 music store
DISTNAME = clamz-0.5
CATEGORIES = net
MAINTAINER = James Turner <james@calminferno.net>
HOMEPAGE = http://code.google.com/p/clamz/
MASTER_SITES = https://clamz.googlecode.com/files/
# GPLv3
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c curl expat gcrypt gpg-error
MODULES = devel/gettext
LIB_DEPENDS = net/curl \
security/libgcrypt
RUN_DEPENDS = devel/desktop-file-utils \
misc/shared-mime-info
CONFIGURE_STYLE = gnu
NO_TEST = Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/clamz
${INSTALL_DATA} ${WRKSRC}/COPYING ${PREFIX}/share/doc/clamz/
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/clamz/
.include <bsd.port.mk>

2
net/clamz/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (clamz-0.5.tar.gz) = WmPyPxXfpsKvAP+VMa6b/MoPrP5bGqgnkJZPBQoJgys=
SIZE (clamz-0.5.tar.gz) = 75001

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2013/10/19 16:33:53 jturner Exp $
--- Makefile.in.orig Thu Oct 17 21:52:26 2013
+++ Makefile.in Thu Oct 17 21:52:44 2013
@@ -70,12 +70,10 @@ install-clamz: clamz@EXEEXT@
install-desktop:
$(INSTALL) -d -m 755 $(DESTDIR)$(applications_dir)
$(INSTALL) -m 644 $(srcdir)/clamz.desktop $(DESTDIR)$(applications_dir)
- $(UPDATE_DESKTOP_DATABASE) $(DESTDIR)$(applications_dir)
install-mime:
$(INSTALL) -d -m 755 $(DESTDIR)$(mime_dir)/packages
$(INSTALL) -m 644 $(srcdir)/clamz.xml $(DESTDIR)$(mime_dir)/packages
- $(UPDATE_MIME_DATABASE) $(DESTDIR)$(mime_dir)
## Uninstallation ##
@@ -87,11 +85,9 @@ uninstall-clamz:
uninstall-desktop:
rm -f $(DESTDIR)$(applications_dir)/clamz.desktop
- $(UPDATE_DESKTOP_DATABASE) $(DESTDIR)$(applications_dir)
uninstall-mime:
rm -f $(DESTDIR)$(mime_dir)/packages/clamz.xml
- $(UPDATE_MIME_DATABASE) $(DESTDIR)$(mime_dir)
## Building source tarball ##

6
net/clamz/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
Clamz is a little command-line program to download MP3 files from
Amazon.com's music store. It is intended to serve as a substitute for
Amazon's official MP3 Downloader, which is not free software (and
therefore is only available in binary form for a limited set of
platforms.) Clamz can be used to download either individual songs or
complete albums that you have purchased from Amazon.

12
net/clamz/pkg/PLIST Normal file
View File

@ -0,0 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/10/19 16:33:52 jturner Exp $
@bin bin/clamz
@man man/man1/clamz.1
share/applications/clamz.desktop
share/doc/clamz/
share/doc/clamz/COPYING
share/doc/clamz/README
share/mime/packages/clamz.xml
@exec %D/bin/update-mime-database %D/share/mime
@unexec-delete %D/bin/update-mime-database %D/share/mime
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database