summaryrefslogtreecommitdiff
path: root/libraries/gst-python/gst-python.SlackBuild
diff options
context:
space:
mode:
authorThiago Coutinho <thiagocoutinho1@gmail.com>2010-05-13 00:29:42 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 00:29:42 +0200
commitaa462b7dde4813f7643cb15f2856845789123218 (patch)
tree54c1ce8e986204a5fc41e1cd5d52a0477713ed8e /libraries/gst-python/gst-python.SlackBuild
parent606bf0b2af1c24e922fcbbed04b4d4ee5052bda4 (diff)
downloadslackbuilds-aa462b7dde4813f7643cb15f2856845789123218.tar.gz
libraries/gst-python: Updated for version 0.10.15
Diffstat (limited to 'libraries/gst-python/gst-python.SlackBuild')
-rw-r--r--libraries/gst-python/gst-python.SlackBuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/libraries/gst-python/gst-python.SlackBuild b/libraries/gst-python/gst-python.SlackBuild
index f1e715e7c4..91a1b6671d 100644
--- a/libraries/gst-python/gst-python.SlackBuild
+++ b/libraries/gst-python/gst-python.SlackBuild
@@ -6,7 +6,7 @@
# Modified by the slackbuilds.org project.
PRGNAM=gst-python
-VERSION=0.10.12
+VERSION=0.10.15
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -18,13 +18,15 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
-# Exit on most errors
set -e
rm -rf $PKG
@@ -33,7 +35,6 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
-
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -45,26 +46,31 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+ 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
-cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README RELEASE TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING ChangeLog INSTALL NEWS README RELEASE TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}