SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sorry, please do me a favor and let me know
dose anyone know a simple and clear approach for offline installation of goldendict package and its dependencies. there is not any SlackBuild about it in SlackBuild.org and compilation from source return many errors (I don't know why, maybe because of dependencies. I did full installation of slackware though)
I found this SlackBuild which seems need some modification but I don't know how to save it in my system, modify and use it.
You were looking to link this (your url got garbled).
And to download files from github, just right click on the "RAW" link at the top right section of the script and either select "save as" or "copy link location" (or similar words depending on your browser). Save as will save the file to your preferred location, however, I tend to prefer using wget, since I'll be working in the terminal anyway. So, for this, you could type (you may or may not need the "--no-check-certificate", I can't remember and I'm not at home to check):
But, note, his slackbuild is in his "UNUSED" directory, so it may not be able to build the current version as is (it was moved almost 2 years ago, and hasn't had any maintenance since then), so, once you install the dependencies, it still may not be able to build goldenedict without modification.
ok, seems that I must try to learn bash scripting. but till then it's so nice if someone create slackbuilds for goldendict and its dependencies as it's the only compatible dictionary with babylon glossaries and stardict which exist in SBO is not so functional.
nope
the slackbuild tried to download source from github while i have source in my laptop. I don't have internet connection in my home, then it can't build package. it's need some modification but I don't know how to modify it.
I built it from git without player and other features. Here is my script. You will need 'slack-desc' file, 'dictionaries' directory with your dictionary files goldendict-1.0.1-src.tar.gz compressed sources in the same folder of slackbuild file.
Code:
#!/bin/sh
# Copyright 2006, 2007, 2008, 2009, 2010, 2011 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PKGNAM=goldendict
VERSION=1.0.1
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:--j8}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp}
PKG=$TMP/package-goldendict
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
rm -rf goldendict-${VERSION}-src
#for 1.0.1 version
mkdir -p goldendict-$VERSION-src
tar xvf $CWD/goldendict-${VERSION}-src.tar.?z* -C ./goldendict-$VERSION-src || exit 1
cd goldendict-$VERSION-src
# Make sure ownerships and permissions are sane:
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 {} \;
#for 1.0.1 version
echo '#include <unistd.h>' | cat - ./processwrapper.cc > temp && mv temp ./processwrapper.cc
echo '#include <sys/types.h>' | cat - ./processwrapper.cc > temp && mv temp ./processwrapper.cc
echo '#include <unistd.h>' | cat - ./qtsingleapplication/src/qtlocalpeer.cpp > temp && mv temp ./qtsingleapplication/src/qtlocalpeer.cpp
echo '#include <sys/types.h>' | cat - ./qtsingleapplication/src/qtlocalpeer.cpp > temp && mv temp ./qtsingleapplication/src/qtlocalpeer.cpp
#application directory in 'apps'
sed -i 's#/share/goldendict#/share/apps/goldendict#' goldendict.pro
sed -i 's#/usr/local#/usr#' goldendict.pro
qmake "DISABLE_INTERNAL_PLAYER=1" goldendict.pro || exit 1
CFLAGS="$SLKCFLAGS" \
make $NUMJOBS || exit 1
make install INSTALL_ROOT=$PKG || exit 1
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
#gzip -9 $PKG/usr/share/man/man1/*.1
mkdir -p $PKG/usr/share/apps/goldendict/dictionaries
cp $CWD/dictionaries/*.BGL $PKG/usr/share/apps/goldendict/dictionaries
cd $PKG
rm -rf ./usr/share/app-install
/sbin/makepkg -l y -c n $TMP/${PKGNAM}-$VERSION-$ARCH-$BUILD.txz
I built it from git without player and other features. Here is my script. You will need 'slack-desc' file, 'dictionaries' directory with your dictionary files goldendict-1.0.1-src.tar.gz compressed sources in the same folder of slackbuild file.
thanks a lot. I will test it tonight. how can I find slack-desc file?
thanks a lot. I will test it tonight. how can I find slack-desc file?
You can write it yourself using the template available here.
Replace appname: that begins each line in the template by goldendict: and exactly that, otherwise the slackdesc won't be picked by the makepkg command. See also "man makepkg".
Last edited by Didier Spaier; 03-01-2015 at 01:50 AM.
Reason: remove duplicated words
thanks a lot. I will test it tonight. how can I find slack-desc file?
Copy this to the slack-desc file:
Code:
# 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------------------------------------------------------|
goldendict: goldendict (dictionary lookup program)
goldendict:
goldendict: A feature-rich dictionary lookup program, supporting multiple
goldendict: dictionary formats (StarDict/Babylon/Lingvo/Dictd) and online
goldendict: dictionaries, featuring perfect article rendering with the complete
goldendict: markup, illustrations and other content retained, and allowing you to
goldendict: type in words without any accents or correct case.
goldendict:
goldendict:
goldendict: http://goldendict.org/
goldendict:
I use goldendict from git, but to compile it I had to change the goldendict.SlackBuild's line that said "qmake" to qmake "CONFIG+=no_epwing_support".
I created slack-deck using template but here is the result of runnig SlackBiuld.
Code:
bash-4.2# sh goldendict.SlackBuild
goldendict.SlackBuild: line 2: $'\r': command not found
goldendict.SlackBuild: line 22: $'\r': command not found
goldendict.SlackBuild: line 26: $'\r': command not found
goldendict.SlackBuild: line 28: $'\r': command not found
goldendict.SlackBuild: line 29: $'\r': command not found
goldendict.SlackBuild: line 31: syntax error near unexpected token `$'in\r''
'oldendict.SlackBuild: line 31: ` case "$( uname -m )" in
I tried to fix that through editing SlackBuild. but the problem still exist. I think it's related to copy/past lines to SlackBuild file. could you attach the SlackBuild file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.