xap/goldendict: Upgraded to goldendict-1.5.0RC2.

slackware-14.2
Damien Goutte-Gattat 6 years ago
parent 48ae87edca
commit 92af175274
  1. 23
      xap/goldendict/goldendict-1.0.1-missing-headers.diff
  2. 1
      xap/goldendict/goldendict-1.0.1-src.tar.bz2.sha1
  3. 1
      xap/goldendict/goldendict-1.5.0-RC2.tar.gz.sha256
  4. 28
      xap/goldendict/goldendict.SlackBuild

@ -1,23 +0,0 @@
diff -Naur goldendict-1.0.1.orig/processwrapper.cc goldendict-1.0.1/processwrapper.cc
--- goldendict-1.0.1.orig/processwrapper.cc 2014-07-20 17:15:10.289696588 +0200
+++ goldendict-1.0.1/processwrapper.cc 2014-07-20 17:15:23.507584963 +0200
@@ -1,6 +1,7 @@
#include "processwrapper.hh"
#include <QtCore>
+#include <unistd.h>
#ifdef Q_OS_WIN32
diff -Naur goldendict-1.0.1.orig/qtsingleapplication/src/qtlocalpeer.cpp goldendict-1.0.1/qtsingleapplication/src/qtlocalpeer.cpp
--- goldendict-1.0.1.orig/qtsingleapplication/src/qtlocalpeer.cpp 2014-07-20 17:15:10.304696462 +0200
+++ goldendict-1.0.1/qtsingleapplication/src/qtlocalpeer.cpp 2014-07-20 17:15:46.363391861 +0200
@@ -42,6 +42,8 @@
#include <QtCore/QCoreApplication>
#include <QtCore/QTime>
+#include <unistd.h>
+
#if defined(Q_OS_WIN)
#include <QtCore/QLibrary>
#include <QtCore/qt_windows.h>

@ -1 +0,0 @@
a1ff36b1cceb5234f4730d1c6f19405a76d40fc4 goldendict-1.0.1-src.tar.bz2

@ -0,0 +1 @@
bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde goldendict-1.5.0-RC2.tar.gz

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014 Damien Goutte-Gattat
# Copyright (C) 2014,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,9 +26,9 @@
# Source package infos
NAMESRC=${NAMESRC:-goldendict}
VERSION=${VERSION:-1.0.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-src.tar.bz2}
WGET=${WGET:-http://downloads.sourceforge.net/goldendict/$ARCHIVE}
VERSION=${VERSION:-1.5.0-RC2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/goldendict/goldendict/archive/$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-goldendict}
@ -60,25 +60,21 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$NAMESRC-$VERSION
# Compile and install
cd $TMP
echo "Building $ARCHIVE..."
mkdir $NAME && cd $NAME
tar xf $CWD/$ARCHIVE
patch -p 1 < $CWD/goldendict-1.0.1-missing-headers.diff
qmake
sed -i 's,/usr/local/,/usr/,' Makefile
make
install -m 755 -s -D goldendict $PKG/usr/bin/goldendict
install -m 644 -D redist/icons/goldendict.png $PKG/usr/share/pixmaps/goldendict.png
install -m 644 -D redist/goldendict.desktop $PKG/usr/share/applications/goldendict.desktop
cd $NAME
qmake PREFIX=/usr CONFIG+=no_epwing_support
make -j $JOBS
make install INSTALL_ROOT=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CREDITS.txt LICENSE.txt $PKG/usr/doc/$NAME
mkdir -p $PKG/usr/doc/$NAMEPKG-${VERSION//-/}
install -m 644 CREDITS.txt LICENSE.txt README.md $PKG/usr/doc/$NAMEPKG-${VERSION//-/}
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
@ -89,7 +85,7 @@ cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-${VERSION//-/}-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"

Loading…
Cancel
Save