diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-18 18:58:21 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-18 19:33:40 -0500 |
commit | 4af31a55b44d8bca4d7e3a28b842a432feb3d15f (patch) | |
tree | 1e7cd9c24084d50e6c80a8a8c971cd31573ff810 /network/kadu/kadu.SlackBuild | |
parent | 282344205120c4f6d494bd8e0a8851a10df19e67 (diff) |
network/kadu: Updated for version 0.12.3.
Various changes to the build system and cleanups.
Noted in the info the new dependency libmpdclient
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/kadu/kadu.SlackBuild')
-rw-r--r-- | network/kadu/kadu.SlackBuild | 47 |
1 files changed, 21 insertions, 26 deletions
diff --git a/network/kadu/kadu.SlackBuild b/network/kadu/kadu.SlackBuild index ce60032425f0b..a93cf6ae38e7b 100644 --- a/network/kadu/kadu.SlackBuild +++ b/network/kadu/kadu.SlackBuild @@ -5,7 +5,7 @@ # Written by marco slociu@wp.pl PRGNAM=kadu -VERSION=${VERSION:-0.9.0} +VERSION=${VERSION:-0.12.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,9 +41,7 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM -mkdir $TMP/$PRGNAM -cd $PRGNAM +rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . @@ -53,25 +51,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Modifying .config file: -static="" # icons_kadu05 icons_tango16 icons_oxygen16 emoticons_gg6_compatible emoticons_tango -disable="" -enable="" # module_screenshot module_agent module_profiles module_firewall module_spellchecker - -for m in $static; do - sed -r -i "s/^($m)=n/\1=y/" .config || exit 1 -done -for m in $enable; do - sed -r -i "s/^($m)=n/\1=m/" .config || exit 1 -done -for m in $disable; do - sed -r -i "s/^($m)=m/\1=n/" .config || exit 1 -done - -sed -i "s|icons_glass16=y|icons_glass16=n|g" .config -sed -i "s|icons_glass22=y|icons_glass22=n|g" .config - -cmake . \ +mkdir -p build +cd build +cmake .. \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -79,17 +61,32 @@ cmake . \ -DSYSCONF_INSTALL_DIR=/etc \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DCMAKE_VERBOSE_MAKEFILE:BOOL="TRUE" \ + -DNETWORK_IMPLEMENTATION="Qt" \ + -DCMAKE_BUILD_TYPE="Release" \ + -DSIG_HANDLING_ENABLED:BOOL="TRUE" \ + -DINSTALL_SDK:BOOL="TRUE" \ -DBUILD_DESCRIPTION="Slackware" make make install DESTDIR=$PKG +cd - find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +# Remove all license files +find $(INSTALL_DIR) -name '[lL][iI][cC][eE][nN][sS][eE].txt' -delete + +# Move cmake files in the proper place +mv $PKG/usr/share/cmake \ + $PKG/usr/share/cmake-$(cmake --version | cut -d\ -f3 | cut -d. -f1-2) + +# Move this away too... +mv $PKG/usr/sdk $PKG/usr/share/$PRGNAM/ + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS COPYING ChangeLog INSTALL TODO README THANKS VERSION \ + AUTHORS COPYING ChangeLog INSTALL README THANKS VERSION \ $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/install @@ -98,5 +95,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} - - |