diff options
author | Michales Michaloudes <korgie@gmail.com> | 2010-05-13 00:57:36 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:57:36 +0200 |
commit | e99f6a3a273b7d7dad67e00c62de3a00fa148a7d (patch) | |
tree | ed3c83c39e402a9ee2548f9e84f4f1fcc0f92520 /desktop/kover/kover.SlackBuild | |
parent | b840baefc33e1c5bfc069453a65b5c494e9d7410 (diff) |
desktop/kover: Added to 13.0 repository
Diffstat (limited to 'desktop/kover/kover.SlackBuild')
-rw-r--r-- | desktop/kover/kover.SlackBuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/desktop/kover/kover.SlackBuild b/desktop/kover/kover.SlackBuild new file mode 100644 index 000000000000..ccbfeca6c37a --- /dev/null +++ b/desktop/kover/kover.SlackBuild @@ -0,0 +1,82 @@ +#!/bin/sh +# Slackware build script for <kover> +# Written by Michales Michaloudes korgie_erase_this@gmail.com + +PRGNAM=kover +VERSION=${VERSION:-4} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +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" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# Add stdio.h includes for gcc 4.4.x +patch -p1 < $CWD/kover-gcc44-fixup_includes.patch + +cmake . \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DMAN_INSTALL_DIR=/usr/man \ + -DINCLUDE_INSTALL_DIR=/usr/include \ + -DLIB_SUFFIX:STRING=${LIBDIRSUFFIX} \ + -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ + +make +make install DESTDIR=$PKG + +# Add categories to .desktop file otherwise will end up in "lost+found" +printf "Categories=KDE;Qt;AudioVideo;DiscBurning;" >> \ + $PKG/usr/share/applications/kde4/kover.desktop + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + ABOUT-NLS NEWS THANKS AUTHORS COPYING ChangeLog README \ + $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} |