desktop/kover: Added to 13.0 repository

This commit is contained in:
Michales Michaloudes 2010-05-13 00:57:36 +02:00 committed by Robby Workman
parent b840baefc3
commit e99f6a3a27
6 changed files with 148 additions and 0 deletions

1
desktop/kover/README Normal file
View file

@ -0,0 +1 @@
Kover is an easy to use WYSIWYG CD cover printer with CDDB support.

14
desktop/kover/doinst.sh Normal file
View file

@ -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

View file

@ -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;

View file

@ -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}

10
desktop/kover/kover.info Normal file
View file

@ -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"

19
desktop/kover/slack-desc Normal file
View file

@ -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: