summaryrefslogtreecommitdiffstats
path: root/multimedia/rosa-media-player/rosa-media-player.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/rosa-media-player/rosa-media-player.SlackBuild')
-rw-r--r--multimedia/rosa-media-player/rosa-media-player.SlackBuild38
1 files changed, 23 insertions, 15 deletions
diff --git a/multimedia/rosa-media-player/rosa-media-player.SlackBuild b/multimedia/rosa-media-player/rosa-media-player.SlackBuild
index 922d7b41ce..4081a0db72 100644
--- a/multimedia/rosa-media-player/rosa-media-player.SlackBuild
+++ b/multimedia/rosa-media-player/rosa-media-player.SlackBuild
@@ -1,28 +1,35 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for romp (ROSA Media Player)
# Written by Anton Chernyshov <ach@rosalab.ru>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=rosa-media-player
VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -46,22 +53,23 @@ cd $PRGNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-make PREFIX=/usr \
-DOC_PATH=\\\"/usr/doc/$PRGNAM-$VERSION\\\"
+ make PREFIX=/usr \
+ DOC_PATH=\\\"/usr/doc/$PRGNAM-$VERSION\\\" \
+ QMAKE=qmake-qt4 \
+ LRELEASE=lrelease-qt4
make \
-PREFIX=/usr \
-DOC_PATH=/usr/doc/$PRGNAM-$VERSION \
-DESTDIR=$PKG install
+ PREFIX=/usr \
+ DOC_PATH=/usr/doc/$PRGNAM-$VERSION \
+ DESTDIR=$PKG install
-find $PKG | xargs file | grep -e "executable" -e "shared object"| grep ELF | \
- cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+strip $PKG/usr/bin/$PRGNAM
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -70,4 +78,4 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE