diff options
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 76d9a406d2..8de11693d8 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 |