LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-11-2013, 03:08 PM   #1
hyperhead
Member
 
Registered: Mar 2011
Location: UK
Distribution: Slackware-current
Posts: 95

Rep: Reputation: 7
cairo-dock 3.2.1 and version on Slackbuilds fails to build


Hi

I am trying to compile cairo-dock after it broke because I updated some packages. I was not dilligent enough to notice what is was and I never noticed until I rebooted (which isnt often).

I tried the non multilib gcc, but that didn't work, I had a poke around but have gleaned it could be something to do with gtk2+ and gtk3+ clashing possibly. Here is the debug from make.

Code:
[ 93%] Building C object src/CMakeFiles/cairo-dock.dir/cairo-dock-widget-shortkeys.c.o
/tmp/cairo-dock-3.2.1/src/cairo-dock-widget-shortkeys.c: In function 'cairo_dock_shortkeys_widget_new':
/tmp/cairo-dock-3.2.1/src/cairo-dock-widget-shortkeys.c:257:2: warning: 'gtk_scrolled_window_add_with_viewport' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkscrolledwindow.h:110): Use 'gtk_container_add' instead [-Wdeprecated-declarations]
  gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (pScrolledWindow), pShortkeysWidget->pShortKeysTreeView);
  ^
Linking C executable cairo-dock
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_return_error'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_type_get_type_registration_serial'
/usr/lib64/libatk-bridge-2.0.so.0: undefined reference to `atk_object_get_object_locale'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_is_valid'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_run_in_thread'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_propagate_pointer'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_application_get_dbus_object_path'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_application_get_dbus_connection'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_new'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_had_error'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `gdk_pixbuf_animation_new_from_resource'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_get_task_data'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_return_pointer'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_set_task_data'
collect2: error: ld returned 1 exit status
make[2]: *** [src/cairo-dock] Error 1
make[1]: *** [src/CMakeFiles/cairo-dock.dir/all] Error 2
make: *** [all] Error 2

Last edited by hyperhead; 07-11-2013 at 03:50 PM.
 
Old 07-12-2013, 09:41 AM   #2
r.vaillancourt
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Rep: Reputation: 0
Hey hyper,
Just built and installed gtkglext and cairo with no problems.
I'm running 64-14 Stable without multilibs, pretty much a vanilla system just re-installed.
Good luck.
 
Old 07-12-2013, 11:23 AM   #3
hyperhead
Member
 
Registered: Mar 2011
Location: UK
Distribution: Slackware-current
Posts: 95

Original Poster
Rep: Reputation: 7
Ok cheers, perhaps its multilib related :P, I'll throw more effort at it, maybe I'll get lucky! I'll look at all the dependencies again and re-install all of them :/

Quote:
Originally Posted by r.vaillancourt View Post
Hey hyper,
Just built and installed gtkglext and cairo with no problems.
I'm running 64-14 Stable without multilibs, pretty much a vanilla system just re-installed.
Good luck.
 
Old 07-12-2013, 07:52 PM   #4
r.vaillancourt
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Rep: Reputation: 0
hey hyper,
just to let you know when i built plugins i had a missing modules error, went by so fast i almost missed it.
but i was still able to build and install. hope this helps.
 
Old 07-13-2013, 02:47 PM   #5
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 343

Rep: Reputation: 56
fwiw, here my Slackbuilds for dock and plugins that seemed to work for 3.2.1 on a multilibs system (and a -current snapshot from some time in the past). ymmv

Code:
#!/bin/sh 

# Slackware build script for cairo-dock
# Written by Robert Goodall (cmd.line.geek@gmail.com)
# Official Site: http://www.glx-dock.org/

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# adapted to later versions by Martinus2u

MAKEFLAGS=-j8

PRGNAM=cairo-dock
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

#SRCBUILD=1

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
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"
else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
#tar -xvf $CWD/$PRGNAM-$VERSION.$SRCBUILD.tar.gz
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_RELEASE:STRING="$SLKCFLAGS" \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DLIB_SUFFIX=${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DMAN_INSTALL_DIR=/usr/man \
  -DCMAKE_BUILD_TYPE=Release .

make $MAKEFLAGS VERBOSE=1
make install DESTDIR=$PKG

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

# Move manpages in the right place
mv $PKG/usr/share/man $PKG/usr

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog INSTALL LGPL-2 LICENSE copyright $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
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
Code:
#!/bin/sh

# Slackware build script for cairo-dock-plugins
# Written by Robert Goodall (cmd.line.geek@gmail.com)
# Official Site: http://www.glx-dock.org/

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# adapted to later versions by Martinus2u

MAKEFLAGS=-j8

PRGNAM=cairo-dock-plugins
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

SRCBUILD=1

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
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"
else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
#tar -xvf $CWD/$PRGNAM-$VERSION.$SRCBUILD.tar.gz
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

# EVIL HACK for 3.1.2
#patch -p1 << EOF
#--- a/alsaMixer/src/applet-struct.h	2013-03-17 15:06:12.220600026 +0100
#+++ b/alsaMixer/src/applet-struct.h	2013-03-17 15:07:53.158202431 +0100
#@@ -20,6 +20,7 @@
# #ifndef __CD_APPLET_STRUCT__
# #define  __CD_APPLET_STRUCT__
# 
#+#include <sys/types.h>
# #include <alsa/asoundlib.h>
# #define _STRUCT_TIMEVAL
# #include <cairo-dock.h>
#EOF

cmake \
  -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DLIB_SUFFIX=${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=Release .

make $MAKEFLAGS 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
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;

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.${PKGTYPE:-tgz}

Last edited by Martinus2u; 07-13-2013 at 02:49 PM.
 
1 members found this post helpful.
Old 07-14-2013, 05:16 AM   #6
hyperhead
Member
 
Registered: Mar 2011
Location: UK
Distribution: Slackware-current
Posts: 95

Original Poster
Rep: Reputation: 7
Thanks a lot Martinus2u! Those scripts worked brilliantly. I will now do a diff to see what the differences are from the Slackbuild.org script and yours are, perhaps I will learn why it kept failing on me.

Thanks again.

Quote:
Originally Posted by Martinus2u View Post
fwiw, here my Slackbuilds for dock and plugins that seemed to work for 3.2.1 on a multilibs system (and a -current snapshot from some time in the past). ymmv

Code:
#!/bin/sh 

# Slackware build script for cairo-dock
# Written by Robert Goodall (cmd.line.geek@gmail.com)
# Official Site: http://www.glx-dock.org/

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# adapted to later versions by Martinus2u

MAKEFLAGS=-j8

PRGNAM=cairo-dock
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

#SRCBUILD=1

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
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"
else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
#tar -xvf $CWD/$PRGNAM-$VERSION.$SRCBUILD.tar.gz
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_RELEASE:STRING="$SLKCFLAGS" \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DLIB_SUFFIX=${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DMAN_INSTALL_DIR=/usr/man \
  -DCMAKE_BUILD_TYPE=Release .

make $MAKEFLAGS VERBOSE=1
make install DESTDIR=$PKG

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

# Move manpages in the right place
mv $PKG/usr/share/man $PKG/usr

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog INSTALL LGPL-2 LICENSE copyright $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
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
Code:
#!/bin/sh

# Slackware build script for cairo-dock-plugins
# Written by Robert Goodall (cmd.line.geek@gmail.com)
# Official Site: http://www.glx-dock.org/

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# adapted to later versions by Martinus2u

MAKEFLAGS=-j8

PRGNAM=cairo-dock-plugins
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

SRCBUILD=1

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
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"
else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
#tar -xvf $CWD/$PRGNAM-$VERSION.$SRCBUILD.tar.gz
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

# EVIL HACK for 3.1.2
#patch -p1 << EOF
#--- a/alsaMixer/src/applet-struct.h	2013-03-17 15:06:12.220600026 +0100
#+++ b/alsaMixer/src/applet-struct.h	2013-03-17 15:07:53.158202431 +0100
#@@ -20,6 +20,7 @@
# #ifndef __CD_APPLET_STRUCT__
# #define  __CD_APPLET_STRUCT__
# 
#+#include <sys/types.h>
# #include <alsa/asoundlib.h>
# #define _STRUCT_TIMEVAL
# #include <cairo-dock.h>
#EOF

cmake \
  -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DLIB_SUFFIX=${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=Release .

make $MAKEFLAGS 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
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;

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.${PKGTYPE:-tgz}
 
Old 07-14-2013, 06:42 AM   #7
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 343

Rep: Reputation: 56
glad i could help ^^
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Use Glx-Dock/Cairo-Dock On Ubuntu 12.04 LXer Syndicated Linux News 0 10-14-2012 11:00 AM
LXer: GLX-Dock (Cairo Dock) 2.3 Beta Gets MintMenu, Cardapio Applets, Many Other Improvements LXer Syndicated Linux News 0 01-23-2011 12:41 PM
LXer: Cairo Dock 2.0.0 is Here (Linux Dock Menu)! LXer Syndicated Linux News 0 05-12-2009 01:20 AM
LXer: Cairo-Dock - Desktop dock for openSUSE Linux LXer Syndicated Linux News 0 08-07-2008 08:20 AM
cairo-dock, gnome-dock, kiba-dock?? LinuxNewbie999 *BSD 0 04-03-2008 09:16 AM


All times are GMT -5. The time now is 04:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration