summaryrefslogtreecommitdiff
path: root/misc/stardict/stardict.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/stardict/stardict.SlackBuild')
-rw-r--r--misc/stardict/stardict.SlackBuild32
1 files changed, 13 insertions, 19 deletions
diff --git a/misc/stardict/stardict.SlackBuild b/misc/stardict/stardict.SlackBuild
index d4df5c9396..8cb3067cdd 100644
--- a/misc/stardict/stardict.SlackBuild
+++ b/misc/stardict/stardict.SlackBuild
@@ -1,7 +1,8 @@
#!/bin/sh
-
# Slackware build script for StarDict
+# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
+
# Copyright 2008-2009 Murat D. Kadirov <banderols@gmail.com>
# Copyright 2012 Binh Nguyen <binhvng@gmail.com>
# All rights reserved.
@@ -24,8 +25,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=stardict
-VERSION=${VERSION:-3.0.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-3.0.6}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -41,6 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+DOCS="AUTHORS COPYING ChangeLog INSTALL README"
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -65,19 +68,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -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 {} \;
-
-# See http://www.stardict.org/forum/viewtopic.php?f=5&t=246
-patch src/eggtrayicon.c -p1 < $CWD/patches/stardict-transparent.patch
-
-# Incorporate some fixes for gcc44 into a deb patch for gcc43
-patch -p1 < $CWD/patches/fixup_build_on_gcc44.patch
-
-# Fix building against gcc-4.7.x
-patch -p1 < $CWD/patches/stardict-3.0.1-gcc47.patch
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -94,19 +88,19 @@ CXXFLAGS="$SLKCFLAGS" \
--disable-gnome-support \
--disable-schemas-install \
--disable-updateinfo \
+ --disable-static \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog README TODO doc/FAQ doc/HACKING \
- doc/HowToCreateDictionary doc/Translation doc/StarDictFileFormat \
+cp -a $DOCS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild