multimedia/last.fm: Added to 12.0 repository

This commit is contained in:
Michael Johnson 2010-05-11 20:01:20 +02:00 committed by Erik Hanson
parent cb70ac0c18
commit 90148354f9
7 changed files with 103 additions and 0 deletions

View file

@ -0,0 +1,6 @@
With Last.fm on your computer you can scrobble your tracks,
share your music tastes, listen to personalised radio streams,
and discover new music and people.
Last.fm is open source software and contains no spyware or adware.
last.fm requires QT4, which is also available at SlackBuilds.org.

View file

@ -0,0 +1,5 @@
if [ -x usr/bin/update-desktop-database ]; then
usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
fi

View file

@ -0,0 +1,59 @@
#!/bin/sh
# Slackware build script for last.fm
# Written by <youngmug@animeneko.net>
# Modified by the SlackBuilds.org project
# Exit on most errors
set -e
PRGNAM=last.fm
VERSION=1.3.2.13
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.src.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
qmake-qt4 -config release
make
#Last.fm doesn't have a nice installer, so we need to package it manually.
mkdir -p $PKG/usr/lib/$PRGNAM $PKG/usr/bin $PKG/usr/share/applications
cp -R bin/* $PKG/usr/lib/$PRGNAM
cat $CWD/last.fm.script > $PKG/usr/bin/last.fm
cat $CWD/last.fm.desktop > $PKG/usr/share/applications/last.fm.desktop
chmod +x $PKG/usr/bin/last.fm
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

View file

@ -0,0 +1,10 @@
[Desktop Entry]
Name=last.fm
GenericName=last.fm Player
Comment=Listen to last.fm streams
Exec=last.fm
Icon=/usr/lib/last.fm/data/icons/as.png
Categories=Application;Qt;AudioVideo;Player;
Terminal=false
Type=Application
Encoding=UTF-8

View file

@ -0,0 +1,8 @@
PRGNAM="last.fm"
VERSION="1.3.2.13"
HOMEPAGE="http://last.fm/"
DOWNLOAD="http://cdn.last.fm/client/src/last.fm-1.3.2.13.src.tar.bz2"
MD5SUM="a4ec606857e7c1dce3c251741cc7923e"
MAINTAINER="Michael Johnson"
EMAIL="youngmug@animeneko.net"
APPROVED="Erik Hanson,rworkman"

View file

@ -0,0 +1,3 @@
#!/bin/sh
cd /usr/lib/last.fm
./last.fm

View file

@ -0,0 +1,12 @@
|-----handy-ruler-----------------------------------------------------|
last.fm: last.fm (Standalone Player for last.fm)
last.fm:
last.fm: With Last.fm on your computer you can scrobble your tracks,
last.fm: share your music tastes, listen to personalized radio streams,
last.fm: and discover new music and people.
last.fm:
last.fm: Last.fm is open source software and contains no spyware or adware.
last.fm:
last.fm: Homepage: http://last.fm/
last.fm:
last.fm: