summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichales Michaloudes <korgie@gmail.com>2010-05-13 00:57:36 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:57:36 +0200
commite99f6a3a273b7d7dad67e00c62de3a00fa148a7d (patch)
treeed3c83c39e402a9ee2548f9e84f4f1fcc0f92520
parentb840baefc33e1c5bfc069453a65b5c494e9d7410 (diff)
downloadslackbuilds-e99f6a3a273b7d7dad67e00c62de3a00fa148a7d.tar.gz
desktop/kover: Added to 13.0 repository
-rw-r--r--desktop/kover/README1
-rw-r--r--desktop/kover/doinst.sh14
-rw-r--r--desktop/kover/kover-gcc44-fixup_includes.patch22
-rw-r--r--desktop/kover/kover.SlackBuild82
-rw-r--r--desktop/kover/kover.info10
-rw-r--r--desktop/kover/slack-desc19
6 files changed, 148 insertions, 0 deletions
diff --git a/desktop/kover/README b/desktop/kover/README
new file mode 100644
index 0000000000..f39a1b9aee
--- /dev/null
+++ b/desktop/kover/README
@@ -0,0 +1 @@
+Kover is an easy to use WYSIWYG CD cover printer with CDDB support.
diff --git a/desktop/kover/doinst.sh b/desktop/kover/doinst.sh
new file mode 100644
index 0000000000..9830478e8c
--- /dev/null
+++ b/desktop/kover/doinst.sh
@@ -0,0 +1,14 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -x /usr/bin/update-mime-database ]; then
+ /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/desktop/kover/kover-gcc44-fixup_includes.patch b/desktop/kover/kover-gcc44-fixup_includes.patch
new file mode 100644
index 0000000000..f7c88da952
--- /dev/null
+++ b/desktop/kover/kover-gcc44-fixup_includes.patch
@@ -0,0 +1,22 @@
+diff -Nur kover-4.orig/src/directory.h kover-4/src/directory.h
+--- kover-4.orig/src/directory.h 2008-11-15 15:59:26.000000000 -0600
++++ kover-4/src/directory.h 2009-11-28 22:55:39.994692905 -0600
+@@ -10,6 +10,7 @@
+ #include <config.h>
+ #include <string>
+ #include <list>
++#include <stdio.h>
+ using namespace std;
+
+ class directory
+diff -Nur kover-4.orig/src/inexact_dialog.h kover-4/src/inexact_dialog.h
+--- kover-4.orig/src/inexact_dialog.h 2008-11-15 15:59:26.000000000 -0600
++++ kover-4/src/inexact_dialog.h 2009-11-28 22:56:06.061713788 -0600
+@@ -26,6 +26,7 @@
+ #include <list>
+ #include <string>
+ #include <QListWidget>
++#include <stdio.h>
+
+ using namespace std;
+
diff --git a/desktop/kover/kover.SlackBuild b/desktop/kover/kover.SlackBuild
new file mode 100644
index 0000000000..ccbfeca6c3
--- /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}
diff --git a/desktop/kover/kover.info b/desktop/kover/kover.info
new file mode 100644
index 0000000000..c316848712
--- /dev/null
+++ b/desktop/kover/kover.info
@@ -0,0 +1,10 @@
+PRGNAM="kover"
+VERSION="4"
+HOMEPAGE="http://lisas.de/kover/"
+DOWNLOAD="http://lisas.de/kover/kover-4.tar.bz2"
+MD5SUM="364bd68967bfada4f9961e14ab1d3a6c"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Michales Michaloudes"
+EMAIL="korgie@gmail.com"
+APPROVED="rworkman"
diff --git a/desktop/kover/slack-desc b/desktop/kover/slack-desc
new file mode 100644
index 0000000000..fc03bee77d
--- /dev/null
+++ b/desktop/kover/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|' on
+# the right side marks the last column you can put a character in. You must make
+# exactly 11 lines for the formatting to be correct. It's also customary to
+# leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+kover: kover (a WYSIWYG CD Cover printer)
+kover:
+kover: kover is an easy to use WYSIWYG CD cover printer with CDDB support.
+kover:
+kover:
+kover:
+kover:
+kover:
+kover:
+kover:
+kover: