multimedia/DivFix++: Fixed (Handle desktop file)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2012-09-29 21:32:31 -04:00 committed by Robby Workman
parent 1ed107ac9e
commit af11800446
2 changed files with 6 additions and 7 deletions

View File

@ -24,15 +24,13 @@
PRGNAM=DivFix++
VERSION=${VERSION:-0.34}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@ -69,7 +67,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Compilation
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make || exit 1
@ -78,17 +75,15 @@ make install DESTDIR=$PKG || exit 1
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# DOCS
cd $TMP/${PRGNAM}_v$VERSION/docs
mkdir -p $PKG/usr/doc/${PRGNAM}_v$VERSION
cp -a Change.log GPL.txt ReadMe.txt \
$PKG/usr/doc/${PRGNAM}_v$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/${PRGNAM}_v$VERSION/$PRGNAM.SlackBuild
# Package install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
# Package creation
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -0,0 +1,4 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi