audio/clementine: Updated for version 0.3.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
David Woodfall 2010-06-15 04:36:58 -05:00 committed by Robby Workman
parent 4bdda09a80
commit 6a49c5521f
2 changed files with 24 additions and 22 deletions

View file

@ -25,17 +25,17 @@
# Modified by SlackBuilds.org
PRGNAM=clementine
VERSION=${VERSION:-0.1}
VERSION=${VERSION:-0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
@ -73,28 +73,30 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
qmake \
QMAKE_CFLAGS+="$SLKCFLAGS" \
QMAKE_CXXFLAGS+="$SLKCFLAGS"
make
mkdir build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
-DCMAKE_BUILD_TYPE=Release ..
make all CFLAGS="-fPIC" PMFLAGS="-DNEWBUFFER"
make install DESTDIR=$PKG
cd ..
for i in 16 32 64 ; do
mkdir -p $PKG/usr/share/icons/hicolor/${i}x${i}/apps
install -m 0644 dist/${PRGNAM}_${i}.png \
install -m 0644 -D dist/${PRGNAM}_${i}.png \
$PKG/usr/share/icons/hicolor/${i}x${i}/apps/application-x-clementine.png
done
mkdir -p $PKG/usr/{bin,share/applications}
install -m 0755 src/$PRGNAM $PKG/usr/bin/
install -m 0644 dist/${PRGNAM}.desktop $PKG/usr/share/applications/
install -m 0644 -D dist/${PRGNAM}.desktop $PKG/usr/share/applications/
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp TODO $PKG/usr/doc/$PRGNAM-$VERSION/
cp -a TODO $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,10 +1,10 @@
PRGNAM="clementine"
VERSION="0.1"
VERSION="0.3"
HOMEPAGE="http://www.kde-apps.org/content/show.php/Clementine?content=120598"
DOWNLOAD="http://clementine-player.googlecode.com/files/clementine-0.1.tar.gz"
MD5SUM="769ac869fd9d8e10ecd15709e0137549"
DOWNLOAD="http://clementine-player.googlecode.com/files/clementine-0.3.tar.gz"
MD5SUM="3aff98e41d9bf96717ecf97c780ef086"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="David Woodfall"
EMAIL="info@davidwoodfall.co.uk"
APPROVED="pprkut"
EMAIL="dave@dawoodfall.net"
APPROVED="rworkman"