summaryrefslogtreecommitdiff
path: root/network/kadu/kadu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/kadu/kadu.SlackBuild')
-rw-r--r--network/kadu/kadu.SlackBuild47
1 files changed, 21 insertions, 26 deletions
diff --git a/network/kadu/kadu.SlackBuild b/network/kadu/kadu.SlackBuild
index ce60032425..a93cf6ae38 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}
-
-