diff options
-rw-r--r-- | system/stardict/slack-desc | 10 | ||||
-rw-r--r-- | system/stardict/stardict.SlackBuild | 15 | ||||
-rw-r--r-- | system/stardict/stardict.info | 2 |
3 files changed, 16 insertions, 11 deletions
diff --git a/system/stardict/slack-desc b/system/stardict/slack-desc index c210ccaa5a160..c5ca590afa965 100644 --- a/system/stardict/slack-desc +++ b/system/stardict/slack-desc @@ -1,4 +1,12 @@ -stardict: StarDict +# 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------------------------------------------------------| +stardict: StarDict (Cross-Platform and international dictionary) stardict: stardict: StarDict is a Cross-Platform and international dictionary written in stardict: Gtk2. It has powerful features such as "Glob-style pattern matching", diff --git a/system/stardict/stardict.SlackBuild b/system/stardict/stardict.SlackBuild index 4b8eb534be30b..14b3bc594ada4 100644 --- a/system/stardict/stardict.SlackBuild +++ b/system/stardict/stardict.SlackBuild @@ -1,7 +1,6 @@ #!/bin/sh # Slackware build script for stardict - # Written by Jick Nan (jick.nan@gmail.com) PRGNAM=stardict @@ -9,7 +8,7 @@ VERSION=2.4.8 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -41,18 +40,16 @@ CXXFLAGS="$SLKCFLAGS" \ make || exit 1 make install DESTDIR=$PKG || exit 1 -find $PKG | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -find $PKG | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) ( 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 + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) -# Fix path to icon in .desktop file -sed -i s#'Icon=stardict.png'#'Icon=/usr/share/pixmaps/stardict.png'# \ - $PKG/usr/share/applications/stardict.desktop || exit 1 - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL README TODO doc/FAQ doc/HACKING \ doc/DICTFILE_FORMAT doc/HowToCreateDictionary $PKG/usr/doc/$PRGNAM-$VERSION diff --git a/system/stardict/stardict.info b/system/stardict/stardict.info index 795a3561a75f8..54d145c19a877 100644 --- a/system/stardict/stardict.info +++ b/system/stardict/stardict.info @@ -5,4 +5,4 @@ DOWNLOAD="http://dl.sourceforge.net/stardict/stardict-2.4.8.tar.bz2" MD5SUM="2f743d809737ca157bad71791c45ce63" MAINTAINER="Jick Nan" EMAIL="jick.nan@gmail.com" -APPROVED="robw810" +APPROVED="rworkman" |