diff options
author | David Woodfall <dave@dawoodfall.net> | 2010-06-15 04:36:58 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-15 04:36:58 -0500 |
commit | 6a49c5521f87df8e2df55d22fe5fa1283b1839ec (patch) | |
tree | 79bb8e4e3a7d0853c774e78b902020294c693994 /audio/clementine/clementine.SlackBuild | |
parent | 4bdda09a8054e97a1535288cf41919f3b2575207 (diff) |
audio/clementine: Updated for version 0.3.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio/clementine/clementine.SlackBuild')
-rw-r--r-- | audio/clementine/clementine.SlackBuild | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/audio/clementine/clementine.SlackBuild b/audio/clementine/clementine.SlackBuild index 76d9a406d2042..8de11693d8bc0 100644 --- a/audio/clementine/clementine.SlackBuild +++ b/audio/clementine/clementine.SlackBuild @@ -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 |