Did some digging and found this script to get the Amazon MP3 down loader to work with Mandriva (says its for 2008.1 but worked great on 2009) and based on the way the script is written it looks like it could work on other distros as well, with little or no changes.
#! /bin/sh
# hackamazonmp3.sh
# install the Amazon MP3 downloader on Mandriva 2008.1
# by adapting the debian binary package
# clever concept stolen from godane's PKGBUILD on the Arch Linux User Repository (AUR)
# http://aur.archlinux.org/packages.php?ID=15566
mkdir -p ~/tmp/amazonmp3
cd ~/tmp/amazonmp3
# convert the deb file to a tar.gz
# http://www.miketaylor.org.uk/tech/deb/
wget http://www.miketaylor.org.uk/tech/deb/deb2targz
chmod +x deb2targz
# get the debian binary
# http://www.amazon.com/gp/dmusic/help/amd.html
wget http://amazonm-002.vo.llnwd.net/u/d1/clients/amazonmp3_1.0.3~gutsy_i386.deb
# checksum -- make sure it says OK before issuing the installamazon command as root
echo 0a9b986e2e9ba5be7e412e9742688ebb \ amazonmp3_1.0.3~gutsy_i386.deb > deb.md5
md5sum -c 'deb.md5'
./deb2targz amazonmp3_1.0.3~gutsy_i386.deb
# extract the binary
tar -xzf amazonmp3_1.0.3~gutsy_i386.tar.gz
# construct the install script that must be run as root
echo #! /bin/sh > installamazon
echo chown -R root:root usr >> installamazon
echo cp -a usr / >> installamazon
# libboost is not installed by default on 2008.1
echo urpmi libboost >> installamazon
echo cd /usr/lib >> installamazon
echo ln -s libboost_date_time.so.1.34.1 libboost_date_time-gcc41-1_34_1.so.1.34.1 >> installamazon
echo ln -s libboost_iostreams.so.1.34.1 libboost_iostreams-gcc41-1_34_1.so.1.34.1 >> installamazon
echo ln -s libboost_signals.so.1.34.1 libboost_signals-gcc41-1_34_1.so.1.34.1 >> installamazon
echo ln -s libboost_thread-mt.so.1.34.1 libboost_thread-gcc41-mt-1_34_1.so.1.34.1 >> installamazon
echo cd - >> installamazon
echo cd .. >> installamazon
echo rm -rf amazonmp3 >> installamazon
echo \n >> installamazon
chmod +x installamazon
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo +++ Change to the directory $HOME/tmp/amazonmp3
echo +++ Issue the command su, and enter your root password
echo +++ Then issue the command: ./installamazon
echo +++ Note: This last command will end with an error, because it deletes itself.
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
exit 0
1 ResponsesLeave a comment ?
I have been working a script that’s almost duplicate the one you have posted here. The issue now, is libboost for Mandriva in Cooker is no longer 1.34.1. Now, it’s libboost1.38.0-1.38.0-2mdv2009.1, and the script no longer works because libboost has so far advanced in versions. It worked for some in 2009.0, but not all – now it doesn’t work in Cooker at all, whereas 3 months ago in Cooker it would work. I think libboost1.34 is no longer even in the repos for Cooker.
If you can help me sort this out, I’d appreciate it very much. I’ve left my email here, and the url of the issue at the Mandriva forum in the Website field here. I think the script has to totally be re-written now for new releases.
Thank you!