You are not logged in.

#1 2008-12-10 00:13:17

lpjhjdh
Member
Registered: 2008-11-29
Posts: 8

Feedback on amazonmp3 for amd64

Hey folks, I've put together an amazonmp3 pkgbuild for amd64 machines and I'd like to get some feedback and help polishing it.  It grabs the packages required from the ubuntu repositories and puts everything into /opt/amazonmp3/.  There's also a script /usr/bin/amazonmp3 that sets environmentals and calls the binary in opt.

Currently I'm not sure if I got all the dependencies correct and several of the files installed I just stole from the current amazonmp3 pkgbuild.

Not sure why the current amazonmp3 build has x86_64 in arch since it points the boost stuff at /usr/lib and I'm fairly sure we don't have lib32- for boost and gtkmm.

In any case, once verified I haven't done anything stupid I'll put this up on aur.
It seems okay as I've tested it on my machine and successfully downloaded an album.

# Contributor: Chris Schwaab christopher.schwaab gmail
pkgname=amazonmp3-amd64
pkgver=1.0.3
pkgrel=1
pkgdesc="The MP3 downloader with self contained library deps for amd64."
url="http://www.amazon.com/gp/dmusic/help/amd.html"
arch=('x86_64')
license=('custom')
depends=('bash' 'lib32-libxdamage' 'lib32-curl' 'lib32-pango' 'lib32-gtk2')
makedepends=('deb2targz')
provides=('amazonmp3')
conflicts=('amazonmp3')

source=('http://mirrors.kernel.org/ubuntu/pool/main/g/gtkmm2.4/libgtkmm-2.4-1c2a_2.12.0-0ubuntu1_i386.deb'
        'http://mirrors.kernel.org/ubuntu/pool/main/c/cairomm/libcairomm-1.0-1_1.2.4-2_i386.deb'
        'http://mirrors.kernel.org/ubuntu/pool/main/g/glibmm2.4/libglibmm-2.4-1c2a_2.14.0-0ubuntu1_i386.deb'
        'http://mirrors.kernel.org/ubuntu/pool/main/libs/libsigc++-2.0/libsigc++-2.0-0c2a_2.0.17-2ubuntu2_i386.deb'
        'http://security.ubuntu.com/ubuntu/pool/universe/b/boost/libboost-date-time1.34.1_1.34.1-2ubuntu1.1_i386.deb'
        'http://security.ubuntu.com/ubuntu/pool/universe/b/boost/libboost-signals1.34.1_1.34.1-2ubuntu1.1_i386.deb'
        'http://security.ubuntu.com/ubuntu/pool/universe/b/boost/libboost-iostreams1.34.1_1.34.1-2ubuntu1.1_i386.deb'
        'http://security.ubuntu.com/ubuntu/pool/universe/b/boost/libboost-thread1.34.1_1.34.1-2ubuntu1.1_i386.deb'
        'http://amazonm-002.vo.llnwd.net/u/d1/clients/amazonmp3_1.0.3~gutsy_i386.deb'
        'http://security.ubuntu.com/ubuntu/pool/main/b/bzip2/libbz2-1.0_1.0.4-0ubuntu2.1_i386.deb')

md5sums=('d3856f10fdecee58656263157ab3b68d'
         'dcc40c10a2ae127e088db9ec08d91e7e'
         'cd8ac50ac2347e9d9408eab68501c5cc'
         '3730b46f495a27598966a864bea8a0ca'
         '0ecf7a773aec14a63e1b7c7169a72c22'
         'ea127e805b17bfc616794c6860bc8304'
         'b9415e35d293f5f28d340cb5fb63d34e'
         '6a02ddcea0b9bb305bfe5ca9311d223a'
         '0a9b986e2e9ba5be7e412e9742688ebb'
         'e19195eb92daaa687cb2072672201c25')

build() {
        deb2targz libgtkmm-2.4-1c2a_2.12.0-0ubuntu1_i386.deb \
                  libcairomm-1.0-1_1.2.4-2_i386.deb \
                  libglibmm-2.4-1c2a_2.14.0-0ubuntu1_i386.deb \
                  libsigc++-2.0-0c2a_2.0.17-2ubuntu2_i386.deb \
                  libboost-date-time1.34.1_1.34.1-2ubuntu1.1_i386.deb \
                  libboost-signals1.34.1_1.34.1-2ubuntu1.1_i386.deb \
                  libboost-iostreams1.34.1_1.34.1-2ubuntu1.1_i386.deb \
                  libboost-thread1.34.1_1.34.1-2ubuntu1.1_i386.deb \
                  libbz2-1.0_1.0.4-0ubuntu2.1_i386.deb \
                  amazonmp3_1.0.3~gutsy_i386.deb
        tar -xzf libgtkmm-2.4-1c2a_2.12.0-0ubuntu1_i386.tar.gz
        tar -xzf libcairomm-1.0-1_1.2.4-2_i386.tar.gz
        tar -xzf libglibmm-2.4-1c2a_2.14.0-0ubuntu1_i386.tar.gz
        tar -xzf libsigc++-2.0-0c2a_2.0.17-2ubuntu2_i386.tar.gz
        tar -xzf libboost-date-time1.34.1_1.34.1-2ubuntu1.1_i386.tar.gz
        tar -xzf libboost-signals1.34.1_1.34.1-2ubuntu1.1_i386.tar.gz
        tar -xzf libboost-iostreams1.34.1_1.34.1-2ubuntu1.1_i386.tar.gz
        tar -xzf libboost-thread1.34.1_1.34.1-2ubuntu1.1_i386.tar.gz
        tar -xzf libbz2-1.0_1.0.4-0ubuntu2.1_i386.tar.gz
        tar -zxf amazonmp3_1.0.3~gutsy_i386.tar.gz

        mkdir -p $pkgdir/opt/amazonmp3
        mkdir -p $pkgdir/usr/share/doc/amazonmp3
        mkdir -p $pkgdir/usr/share/mime-info/

    tar -cf - -C lib ./ | tar -xf - -C $pkgdir/opt/amazonmp3
    tar -cf - -C usr/lib ./ | tar -xf - -C $pkgdir/opt/amazonmp3

        cat > amazonmp3 <<__EOF__
#!/bin/bash
export GTK_PATH=/opt/lib32/usr/lib/gtk-2.0
export GDK_PIXBUF_MODULE=/opt/lib32/config/gdk/gdk-pixbuf.loaders
export PANGO_RC_FILE=/opt/lib32/config/pango/pangorc
export LD_LIBRARY_PATH=/opt/lib32/usr/lib:/opt/amazonmp3:\$LD_LIBRARY_PATH
/opt/amazonmp3/amazonmp3
__EOF__

        install -D -m644 usr/share/doc/amazonmp3/license.html \
                         $pkgdir/usr/share/licenses/amazonmp3-amd64/license.html
        install -D -m755 amazonmp3 $pkgdir/usr/bin/amazonmp3
        install -D -m755 usr/bin/amazonmp3 $pkgdir/opt/amazonmp3/amazonmp3
        install -D -m644 usr/share/applications/amazonmp3.desktop \
                         $pkgdir/usr/share/applications/amazonmp3.desktop
        install -D -m644 usr/share/doc/amazonmp3/* \
                         $pkgdir/usr/share/doc/amazonmp3
        install -D -m644 usr/share/mime/packages/amazonmp3.xml \
                         $pkgdir/usr/share/mime/packages/amazonmp3.xml
        install -D -m644 usr/share/mime-info/*  \
                         $pkgdir/usr/share/mime-info/
        install -D -m644 usr/share/mimelnk/audio/x-amzxml.desktop \
                         $pkgdir/usr/share/mimelnk/audio/x-amzxml.desktop
        install -D -m644 usr/share/pixmaps/amazonmp3.png \
                         $pkgdir/usr/share/pixmaps/amazonmp3.png
}

Thanks.

Last edited by lpjhjdh (2008-12-14 18:52:44)

Offline

#2 2008-12-14 05:54:27

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: Feedback on amazonmp3 for amd64

Hey thanks a lot! I've now removed everything that I previously needed a chroot for!
,
The only issue with the PKGBUILD was that it didn't automatically download and install the dependencies: aka deb2targz, lib32-curl, etc. It just stopped with a "ERROR Could not resolve all dependencies". But as soon as I installed them manually, the rest of the PKGBUILD worked great!

Thanks!  Look forward to seeing it in the AUR!

Scott

Offline

#3 2008-12-14 18:51:48

lpjhjdh
Member
Registered: 2008-11-29
Posts: 8

Re: Feedback on amazonmp3 for amd64

Thanks.  Not sure why it couldn't pull in the dependancies.
Seems to work well enought I suppose.  I made a few small changes and threw it up on aur.

Offline

Board footer

Powered by FluxBB