You are not logged in.

#1 2008-03-03 14:12:08

ProfessorTomoe
Member
From: Garland, TX
Registered: 2008-02-12
Posts: 52

[Request] Amazon MP3 Downloader

Amazon has released a Linux version of the Amazon MP3 Downloader program.  It allows you to purchase and download entire albums of DRM-free MP3s at a discount over buying the MP3s one at a time.

They've only packaged it for Ubuntu, Debian, Fedora, and openSUSE.  As far as I can tell, you have to go to the above URL and check the box to accept their terms of use before you can download it.

I tried creating my own PKGBUILD, but I'm not having much luck understanding exactly what goes where.  Any help would be appreciated.

Here's what I managed to put together so far by digging stuff out of the Debian version amazonmp3.deb file:

pkgname=amazonmp3
pkgver=1.0.2-1
pkgrel=1
pkgdesc="Amazon MP3 Downloader - Use the Amazon MP3 Downloader to download albums from http://www.amazonmp3.com"
arch=('i686' 'x86_64')
url="http://www.amazon.com/gp/dmusic/help/amd.html"
license=('custom')
depends=('libgtkmm-2.4-1c2a' 'libboost-thread1.33.1' 'libboost-iostreams1.33.1' 'libboost-signals1.33.1' 'libboost-date-time1.33.1' 'libcurl3' 'libssl0.9.8' 'xdg-utils')

The control file inside the .deb file is as follows:

Package: amazonmp3
Version: 1.0.2-1
Section: net
Priority: extra
Architecture: i386
Depends: libgtkmm-2.4-1c2a, libboost-thread1.33.1, libboost-iostreams1.33.1, libboost-signals1.33.1, libboost-date-time1.33.1, libcurl3, libssl0.9.8, xdg-utils
Installed-Size: 756
Maintainer: Amazon MP3 <amd-linux@amazon.com>
Description: Amazon MP3 Downloader
 Use the Amazon MP3 Downloader to download albums from http://www.amazonmp3.com

There's also an MD5SUMS file:

a3ae2d781a92b96f9cf8945cb9664948  usr/share/mimelnk/audio/x-amzxml.desktop
517b7b16909c28b4e802ceac06f93bbd  usr/share/mime/packages/amazonmp3.xml
1f867a43d84a6b1fdf46e36d9c0686b0  usr/share/applications/amazonmp3.desktop
8ede68aa59f52300862acf0e18240aca  usr/share/mime-info/amazonmp3.mime
22050f8f6201740dca096dfbd2cbd1fc  usr/share/mime-info/amazonmp3.keys
6d5c626022ba14ba7bdee3cffd7db957  usr/share/doc/amazonmp3/license.html
09f79aa70363be88e0a13cf38b7fbbf7  usr/share/doc/amazonmp3/help.html
d4cb7cd1baa79b6ec96d982ac42333b1  usr/share/doc/amazonmp3/releasenotes
6b4b0e1a1542fd91bff28d4b9b5c86c2  usr/share/doc/amazonmp3/copyright
17bb53293aa428eb2057644b4bd117f9  usr/share/doc/amazonmp3/changelog.Debian.gz
9c0ab96a38490bce4376042b8e7b9724  usr/share/pixmaps/amazonmp3.png
2613cefce1c7d81f4df70db81d5f421b  usr/bin/amazonmp3

Finally, the .deb file contains files named postinst...

#!/bin/sh
set -e
# Automatically added by dh_installmime
if [ "$1" = "configure" ] && [ -x "`which update-mime-database 2>/dev/null`" ]; then
    update-mime-database /usr/share/mime
fi
# End automatically added section
# Automatically added by dh_desktop
if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
    update-desktop-database -q
fi
# End automatically added section

...and postrm...

#!/bin/sh
set -e
# Automatically added by dh_installmime
if [ -x "`which update-mime-database 2>/dev/null`" ]; then
    update-mime-database /usr/share/mime
fi
# End automatically added section
# Automatically added by dh_desktop
if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
    update-desktop-database -q
fi
# End automatically added section

I'm certain that everything I need to create the PKGBUILD is present here.  Like I said, I just can't figure out how to put it all together. sad

Thanks in advance!

Offline

#2 2008-03-03 19:59:36

zoglesby
Member
Registered: 2006-08-31
Posts: 7
Website

Re: [Request] Amazon MP3 Downloader

I would like to second a request for this. I have been using Amazon MP3 to download single songs at a time but I would love to be able to buy full albums.

Offline

#3 2008-03-03 22:16:55

Jedi Stannis
Member
Registered: 2004-09-10
Posts: 65

Re: [Request] Amazon MP3 Downloader

I would like this too... maybe the deb2targz package could be useful for this?

Offline

#4 2008-03-04 02:14:12

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Re: [Request] Amazon MP3 Downloader

Count one more vote!
I need this, especially the Arch64 version

Offline

#5 2008-03-05 05:11:14

ProfessorTomoe
Member
From: Garland, TX
Registered: 2008-02-12
Posts: 52

Re: [Request] Amazon MP3 Downloader

Jedi Stannis wrote:

I would like this too... maybe the deb2targz package could be useful for this?

I used the deb2targz package to dig into the archive at first.  I'm not certain that everything would be installed properly if I did a Pacman -U with the resulting .tgz file, though.  Those two scripts might get ignored, and that could fubar the whole thing.  Hence the request here. wink

Offline

#6 2008-03-07 18:47:44

ManOnONeWheel
Member
Registered: 2008-01-11
Posts: 25

Re: [Request] Amazon MP3 Downloader

And another! I want this too. I can't believe there isn't a fairly easy way to convert a .deb or a .rpm to something more . . . universal.

Offline

#7 2008-03-07 23:05:01

erm67
Member
From: Europe
Registered: 2007-08-01
Posts: 123

Re: [Request] Amazon MP3 Downloader

I made a PKGBUILD that somehow works and uploaded it to AUR. I cannot maintain it however (cannot even test it since the service is only for US customers) so orphaned it.

Last edited by erm67 (2008-03-07 23:06:27)

Offline

#8 2008-03-13 00:56:35

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Re: [Request] Amazon MP3 Downloader

Anyone get it to work on Arch64.

Here is the problem I am running into

It doesn't seem to work on Arch64.

./amazonmp3: error while loading shared libraries: libgtkmm-2.4.so.1: wrong ELF class: ELFCLASS64

Offline

#9 2008-03-13 20:02:45

erm67
Member
From: Europe
Registered: 2007-08-01
Posts: 123

Re: [Request] Amazon MP3 Downloader

phabulosa wrote:

Anyone get it to work on Arch64.

Here is the problem I am running into

It doesn't seem to work on Arch64.

./amazonmp3: error while loading shared libraries: libgtkmm-2.4.so.1: wrong ELF class: ELFCLASS64

If you find a version compiled for arch64 it can be easily packaged, otherwise without sources isn't easy ....

Offline

#10 2008-03-13 23:00:32

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Re: [Request] Amazon MP3 Downloader

erm67 wrote:
phabulosa wrote:

Anyone get it to work on Arch64.

Here is the problem I am running into

It doesn't seem to work on Arch64.

./amazonmp3: error while loading shared libraries: libgtkmm-2.4.so.1: wrong ELF class: ELFCLASS64

If you find a version compiled for arch64 it can be easily packaged, otherwise without sources isn't easy ....

i already emailed amazon support and asked for a 64bit version or their source, but I was refused.

Offline

#11 2008-04-26 15:29:26

deadrabbit
Member
Registered: 2008-04-26
Posts: 118

Re: [Request] Amazon MP3 Downloader

Thank you OTBTech!

Offline

#12 2008-06-13 01:10:49

jmetal88
Member
Registered: 2007-12-09
Posts: 66

Re: [Request] Amazon MP3 Downloader

Don't know if anyone here had spotted this one yet. I haven't got around to trying it yet:

http://www.brianparsons.net/2008/03/ama … rch-linux/

Offline

#13 2008-08-14 13:49:54

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,109

Re: [Request] Amazon MP3 Downloader

phabulosa wrote:

Anyone get it to work on Arch64.

Here is the problem I am running into

It doesn't seem to work on Arch64.

./amazonmp3: error while loading shared libraries: libgtkmm-2.4.so.1: wrong ELF class: ELFCLASS64

If you run Arch64, the amazonmp3 package in AUR will build, install and run nicely in a chrooted Arch32 setup (see instructions here).

Even though they're not releasing their source and they're not offering a 64-bit Linux version of their mp3 downloader, I agree that Amazon is worth supporting, since their mp3s are DRM-free.

When I've wanted to buy an album, which requires the Amazon downloader, I've previously been doing it under Windows, then just copying the files to my Linux filesystem. Using the chrooted Arch32 approach, I can buy Amazon mp3 albums without leaving home (i.e., without leaving Arch).

Last edited by dhave (2008-08-14 13:53:14)


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

#14 2009-07-16 00:35:54

chunk08
Member
Registered: 2009-07-09
Posts: 5
Website

Re: [Request] Amazon MP3 Downloader

The amazonmp3 package for arch64 is broken, pointing at a .deb in mirrors.kernel.org that returns a 404:

  -> Downloading libgtkmm-2.4-1c2a_2.12.0-0ubuntu1_i386.deb...
--2009-07-15 20:32:22--  http://mirrors.kernel.org/ubuntu/pool/main/g/gtkmm2.4/libgtkmm-2.4-1c2a_2.12.0-0ubuntu1_i386.deb
Resolving mirrors.kernel.org... 204.152.191.39, 149.20.20.135
Connecting to mirrors.kernel.org|204.152.191.39|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2009-07-15 20:32:23 ERROR 404: Not Found.

==> ERROR: Failure while downloading libgtkmm-2.4-1c2a_2.12.0-0ubuntu1_i386.deb
    Aborting...
Error: Makepkg was unable to build amazonmp3-amd64 package.

"On two occasions I have been asked,—'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' In one case a member of the Upper, and in the other a member of the Lower, House put this question. I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question." - Charles Babbage
Toshiba Satellite L355D 17": xdm, ratpoison

Offline

#15 2009-07-16 14:42:56

Solid1986Snake
Member
Registered: 2007-06-18
Posts: 258

Re: [Request] Amazon MP3 Downloader

The other ability is to build a "static" Version of amazonmp3 wink

Look at the PKGBUILD in aur, there are some librarys linked.... just do it for ALL dependencys...

Would mean: download ALL packages that amazonmp3 depends on from ubuntu repository and let them be installed in the /opt directory... I started a while ago with this, but it really got a lot of work and would be a "dirty" hack wink But if you have enough time, try it big_smile

Offline

#16 2009-07-16 14:52:30

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [Request] Amazon MP3 Downloader

http://aur.archlinux.org/packages.php?ID=16108

This works and allows for both single and album downloads. Better yet it's open source and so works find on any architecture.

Offline

Board footer

Powered by FluxBB