summaryrefslogtreecommitdiff
path: root/desktop/cairo-dock-plugins/cairo-dock-plugins.SlackBuild
diff options
context:
space:
mode:
authorRobert Goodall <cmd.line.geek@gmail.com>2011-07-06 02:23:44 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:59:29 -0300
commit35541c07f8636f2ee077a37ad7a65e637cb7ec83 (patch)
treea789f36ae0aacf50a788f2d79a7bfcafeb89e174 /desktop/cairo-dock-plugins/cairo-dock-plugins.SlackBuild
parent481f8f7980a9eb0e1ae962d7e5359f3675d12fb3 (diff)
downloadslackbuilds-35541c07f8636f2ee077a37ad7a65e637cb7ec83.tar.gz
desktop/cairo-dock-plugins: Updated for version 2.3.0~2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/cairo-dock-plugins/cairo-dock-plugins.SlackBuild')
-rw-r--r--desktop/cairo-dock-plugins/cairo-dock-plugins.SlackBuild37
1 files changed, 24 insertions, 13 deletions
diff --git a/desktop/cairo-dock-plugins/cairo-dock-plugins.SlackBuild b/desktop/cairo-dock-plugins/cairo-dock-plugins.SlackBuild
index ba130e745f..515bbf6ce6 100644
--- a/desktop/cairo-dock-plugins/cairo-dock-plugins.SlackBuild
+++ b/desktop/cairo-dock-plugins/cairo-dock-plugins.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh
# Slackware build script for cairo-dock-plugins
# Written by Robert Goodall (cmd.line.geek@gmail.com)
@@ -22,12 +22,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cairo-dock-plugins
-VERSION=${VERSION:-2.2.0_4}
+VERSION=${VERSION:-2.3.0~2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SRC_VERSION=$(printf $VERSION | tr _ -)
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -55,31 +53,44 @@ else
LIBDIRSUFFIX=""
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUPUT
-cd $TMP || exit 1
-rm -rf $PRGNAM-$SRC_VERSION
-tar -xvf $CWD/$PRGNAM-$SRC_VERSION.tar.gz
-cd $PRGNAM-$SRC_VERSION
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release .
-make VERBOSE=1 || exit
-make install DESTDIR=$PKG || exit 1
+make VERBOSE=1
+make install DESTDIR=$PKG
+
+# Sheesh. Donchaloveruby?
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
+if [ -d $PKG/usr/usr ]; then
+ mv $PKG/usr/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1/CDApplet.rb \
+ $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
+ rm -rf $PKG/usr/usr
+elif [ -e $PKG/usr/CDApplet.rb ]; then
+ mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
+ mv $PKG/usr/CDApplet.rb $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
+fi
find $PKG -print0 | xargs -0 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 -a ChangeLog LGPL-2 LICENSE copyright $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.Slackbuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
mkdir -p $PKG/install