LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-24-2015, 03:44 AM   #1
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
goldendict installation


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.

Last edited by travis82; 02-24-2015 at 04:56 AM.
 
Old 02-24-2015, 06:05 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
you will need ffmpeg from SBo and probably qtwebkit which is not yet available on SBo
 
1 members found this post helpful.
Old 02-24-2015, 09:19 AM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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):

Code:
wget --no-check-certificate https://github.com/cycojesus/slackbuilds/raw/master/xap/UNUSED/goldendict/goldendict.SlackBuild
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.
 
1 members found this post helpful.
Old 02-24-2015, 11:46 PM   #4
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
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.
 
Old 02-25-2015, 01:25 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
There is already a slackbuild, we just don't know if it will work since it is almost 2 years old. Have you tried building it?
 
Old 02-25-2015, 02:14 AM   #6
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
There is already a slackbuild, we just don't know if it will work since it is almost 2 years old. Have you tried building it?
I will test it tonight at my home
 
Old 02-27-2015, 11:17 PM   #7
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
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.
 
Old 02-28-2015, 05:10 AM   #8
polyph
LQ Newbie
 
Registered: Apr 2012
Posts: 10

Rep: Reputation: 3
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

Last edited by polyph; 02-28-2015 at 05:51 AM.
 
1 members found this post helpful.
Old 03-01-2015, 12:17 AM   #9
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
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?
 
Old 03-01-2015, 01:41 AM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by travis82 View Post
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
 
Old 03-01-2015, 09:39 AM   #11
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.1
Posts: 138

Rep: Reputation: 19
Quote:
Originally Posted by travis82 View Post
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".

Last edited by neymac; 03-01-2015 at 09:50 AM.
 
Old 03-01-2015, 10:07 AM   #12
ml4711
Member
 
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146

Rep: Reputation: 103Reputation: 103
@neymac

Quote:
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".
Or Install libeb from here:
ftp://ftp.sra.co.jp/pub/misc/eb/eb-4.4.3.tar.bz2

and You will have epwing_support
 
1 members found this post helpful.
Old 03-01-2015, 10:37 AM   #13
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.1
Posts: 138

Rep: Reputation: 19
@ml4711
Thank you. I installed libeb and now I have goldendict with epwing_support.

Last edited by neymac; 03-01-2015 at 11:26 AM.
 
Old 03-01-2015, 11:04 PM   #14
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
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?
 
Old 03-01-2015, 11:45 PM   #15
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Those errors suggest that some Windows editor has been used, which has created CRLF line endings.
In your Linux , try
Code:
mv goldendict.SlackBuild goldendict.SlackBuild.old
fromdos < goldendict.SlackBuild.old  > goldendict.SlackBuild
and then rerun the SlackBuild.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Goldendict dictionary fails "make install" neymac Slackware 2 06-17-2013 01:04 PM
Ubuntu 11.10 GoldenDict 1. won't read archives 2. not working online Nityanandi Ubuntu 1 01-01-2012 07:09 PM
LXer: GoldenDict: A Dictionary Nugget LXer Syndicated Linux News 0 07-02-2009 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration