summaryrefslogtreecommitdiff
path: root/multimedia/mythplugins/mythplugins.SlackBuild
diff options
context:
space:
mode:
authorDavid Somero <dsomero@hotmail.com>2010-05-13 00:35:04 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:35:04 +0200
commit730600ba523cb7d5e2b0948cf63b54c2758b67cf (patch)
tree1650bd044d39224eabb77b04c0a6c9088479ce4c /multimedia/mythplugins/mythplugins.SlackBuild
parent32188b69fad25be06eb625836c2f4999fff2c171 (diff)
downloadslackbuilds-730600ba523cb7d5e2b0948cf63b54c2758b67cf.tar.gz
multimedia/mythplugins: Updated for version 0.22
Diffstat (limited to 'multimedia/mythplugins/mythplugins.SlackBuild')
-rw-r--r--multimedia/mythplugins/mythplugins.SlackBuild45
1 files changed, 26 insertions, 19 deletions
diff --git a/multimedia/mythplugins/mythplugins.SlackBuild b/multimedia/mythplugins/mythplugins.SlackBuild
index 85d0f1db8b..726bd44c1c 100644
--- a/multimedia/mythplugins/mythplugins.SlackBuild
+++ b/multimedia/mythplugins/mythplugins.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for mythtvplugins
# http://www.mythtv.org/
-# Copyright 2006-2007 David Somero (dsomero@hotmail.com)
+# Copyright 2006-2009 David Somero (dsomero@hotmail.com) Athens,TN USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mythplugins
-VERSION=0.21
+VERSION=0.22
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -34,12 +34,15 @@ TMP=${TMP:-/tmp/SBo}
PKG=${TMP}/package-${PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
-if [ "${ARCH}" = "i486" ]; then
+if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
-elif [ "${ARCH}" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
set -e
@@ -57,38 +60,42 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure --prefix=/usr
qmake $PRGNAM.pro
make
-
make INSTALL_ROOT="$PKG" install
+
cp -a mythweb $PKG/usr/share/mythtv/
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-( PATHS=$(ls -d */ | xargs -l basename)
- for i in $PATHS;do test -f $i/README && cp $i/README $PKG/usr/doc/$PRGNAM-$VERSION/README.$i;done
- for i in $PATHS;do test -f $i/AUTHORS && cp $i/AUTHORS $PKG/usr/doc/$PRGNAM-$VERSION/AUTHORS.$i;done
- for i in $PATHS;do test -f $i/COPYING && cp $i/COPYING $PKG/usr/doc/$PRGNAM-$VERSION/COPYING.$i;done
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
)
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-( cd $PKG/usr/doc ; ln -s $PRGNAM-$VERSION $PRGNAM )
-# Remove perlocal.pod and .packlist from $PKG
+# Remove perllocal.pod and other special files that don't need to be installed
( cd $PKG
- find . -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f
+ find . -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f
)
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- 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
+( PATHS=$(ls -d */ | xargs -l basename)
+ for i in $PATHS; do
+ [ -f $i/README ] && cp $i/README $PKG/usr/doc/$PRGNAM-$VERSION/README.$i ;
+ [ -f $i/AUTHORS ] && cp $i/AUTHORS $PKG/usr/doc/$PRGNAM-$VERSION/AUTHORS.$i ;
+ [ -f $i/COPYING ] && cp $i/COPYING $PKG/usr/doc/$PRGNAM-$VERSION/COPYING.$i ;
+ done
)
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+( cd $PKG/usr/doc ; ln -s $PRGNAM-$VERSION $PRGNAM )
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}