From 69c7496e81e7e062887de34435f0e4e4ac858393 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 20 Sep 2012 08:07:48 +0700 Subject: graphics/scantailor: Updated for version 0.9.11.1. This commit also adds a .desktop file. Signed-off-by: Robby Workman --- graphics/scantailor/doinst.sh | 3 +++ graphics/scantailor/scantailor.SlackBuild | 8 +++++++- graphics/scantailor/scantailor.desktop | 11 +++++++++++ graphics/scantailor/scantailor.info | 6 +++--- 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 graphics/scantailor/doinst.sh create mode 100644 graphics/scantailor/scantailor.desktop diff --git a/graphics/scantailor/doinst.sh b/graphics/scantailor/doinst.sh new file mode 100644 index 0000000000..01ca62b341 --- /dev/null +++ b/graphics/scantailor/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi \ No newline at end of file diff --git a/graphics/scantailor/scantailor.SlackBuild b/graphics/scantailor/scantailor.SlackBuild index a2ccb789a6..f17e95d17e 100644 --- a/graphics/scantailor/scantailor.SlackBuild +++ b/graphics/scantailor/scantailor.SlackBuild @@ -5,7 +5,7 @@ # Written by Zhischenko Sergey PRGNAM=scantailor -VERSION=${VERSION:-0.9.9.2} +VERSION=${VERSION:-0.9.11.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,6 +69,11 @@ 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 +mkdir -p $PKG/usr/share/icons/hicolor/scalable/apps/ +cp resources/appicon.svg $PKG/usr/share/icons/hicolor/scalable/apps/scantailor.svg +mkdir -p $PKG/usr/share/applications +cp $CWD/scantailor.desktop $PKG/usr/share/applications/scantailor.desktop + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ COPYING GPL3.txt \ @@ -77,6 +82,7 @@ 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/graphics/scantailor/scantailor.desktop b/graphics/scantailor/scantailor.desktop new file mode 100644 index 0000000000..2540a45c4c --- /dev/null +++ b/graphics/scantailor/scantailor.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Scan Tailor +Comment=An interactive post-processing tool for scanned pages. +Icon=scantailor.svg +Exec=scantailor %u +TryExec=scantailor +Terminal=false +Type=Application +StartupNotify=true +Categories=Graphics; + diff --git a/graphics/scantailor/scantailor.info b/graphics/scantailor/scantailor.info index 9f87f72052..da5f0d1de2 100644 --- a/graphics/scantailor/scantailor.info +++ b/graphics/scantailor/scantailor.info @@ -1,8 +1,8 @@ PRGNAM="scantailor" -VERSION="0.9.9.2" +VERSION="0.9.11.1" HOMEPAGE="http://scantailor.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/scantailor/scantailor-0.9.9.2.tar.gz" -MD5SUM="0944b12c936019fe12269c7a356d60d0" +DOWNLOAD="http://downloads.sourceforge.net/scantailor/scantailor-0.9.11.1.tar.gz" +MD5SUM="6cdca1b6d1dafd022ea94b4800dad340" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3