diff options
author | Chris Lawrence <selivanow@gmail.com> | 2010-05-13 01:00:25 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 01:00:25 +0200 |
commit | 86447526576ac1a83c73811c0835fbbb103d0bd5 (patch) | |
tree | 17b932bd0c2f79109ce3cd24f5ecaac046915c3a /network/vuze/vuze.SlackBuild | |
parent | 0b589f7d91335b59d1c20099e161131539051607 (diff) |
network/vuze: Added to 13.0 repository
Diffstat (limited to 'network/vuze/vuze.SlackBuild')
-rw-r--r-- | network/vuze/vuze.SlackBuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/network/vuze/vuze.SlackBuild b/network/vuze/vuze.SlackBuild new file mode 100644 index 0000000000000..85b9931f5003a --- /dev/null +++ b/network/vuze/vuze.SlackBuild @@ -0,0 +1,49 @@ +#!/bin/sh + +# Slackware build script for Azureus/Vuze +# Written by Chris Lawrence <selivanow@gmail.com> + +PRGNAM=vuze +VERSION=${VERSION:-4.3.0.4} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +if [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="64" + ARCHIVE=Vuze_${VERSION}_linux-$ARCH.tar.bz2 +else + ARCH=i486 + LIBDIRSUFFIX="" + ARCHIVE=Vuze_${VERSION}_linux.tar.bz2 +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +rm -rf $PKG +mkdir -p $TMP $PKG/usr/lib${LIBDIRSUFFIX} $PKG/usr/bin $OUTPUT +tar xvf $CWD/$ARCHIVE -C $PKG/usr/lib${LIBDIRSUFFIX} + +# Set PROGRAM_DIR and MOZILLA_FIVE_HOME in the azureus program script +sed "s%@LIBDIR@%/usr/lib${LIBDIRSUFFIX}%g" $CWD/vuze-set_paths.diff | \ + patch -p1 -d $PKG/usr/lib${LIBDIRSUFFIX}/vuze + +# Create two new symlinks in /usr/bin +( cd $PKG/usr/bin + ln -s ../lib${LIBDIRSUFFIX}/$PRGNAM/azureus + ln -s ../lib${LIBDIRSUFFIX}/$PRGNAM/vuze +) + +mkdir -p $PKG/usr/share/{applications,pixmaps} +cat $CWD/vuze.desktop > $PKG/usr/share/applications/vuze.desktop +( cd $PKG/usr/share/pixmaps ; ln -s ../../lib${LIBDIRSUFFIX}/vuze/vuze.png ) + +mkdir $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |