mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
goldendict: update to 1.5.0.
This commit is contained in:
parent
98f03d3eb0
commit
27b3ffea5f
3 changed files with 18 additions and 38 deletions
|
@ -10,16 +10,14 @@ Date: Sat Jan 4 23:12:59 2020 +0100
|
||||||
|
|
||||||
This will fail with undefined reference to qbswap<unsigned long>.
|
This will fail with undefined reference to qbswap<unsigned long>.
|
||||||
|
|
||||||
diff --git ripemd.cc ripemd.cc
|
--- goldendict-1.5.0/ripemd.cc 2023-05-29 16:51:31.000000000 +0200
|
||||||
index bad8fc7..24ac811 100644
|
+++ - 2023-06-24 18:02:27.579627739 +0200
|
||||||
--- a/ripemd.cc
|
@@ -174,7 +174,7 @@
|
||||||
+++ b/ripemd.cc
|
|
||||||
@@ -173,7 +173,7 @@ void RIPEMD128::update( const uint8_t * data, size_t len )
|
|
||||||
|
|
||||||
void RIPEMD128::digest( uint8_t * digest )
|
void RIPEMD128::digest( uchar * digest )
|
||||||
{
|
{
|
||||||
- uint64_t finalcount = qFromLittleEndian( count << 3 );
|
- quint64 finalcount = qFromLittleEndian( count << 3 );
|
||||||
+ uint64_t finalcount = qFromLittleEndian<quint64>( count << 3 );
|
+ quint64 finalcount = qFromLittleEndian<quint64>( count << 3 );
|
||||||
update( (const uint8_t *) "\200", 1 );
|
update( (const uchar *) "\200", 1 );
|
||||||
while ( ( count & 63 ) != 56 )
|
while ( ( count & 63 ) != 56 )
|
||||||
update( ( const uint8_t * ) "", 1 );
|
update( ( const uchar * ) "", 1 );
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
--- a/ffmpegaudio.cc.orig 2018-05-09 22:16:13.480659958 +0200
|
|
||||||
+++ b/ffmpegaudio.cc 2018-05-09 22:16:50.748322790 +0200
|
|
||||||
@@ -143,7 +143,7 @@
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
- unsigned char * avioBuffer = ( unsigned char * )av_malloc( kBufferSize + FF_INPUT_BUFFER_PADDING_SIZE );
|
|
||||||
+ unsigned char * avioBuffer = ( unsigned char * )av_malloc( kBufferSize + AV_INPUT_BUFFER_PADDING_SIZE );
|
|
||||||
if ( !avioBuffer )
|
|
||||||
{
|
|
||||||
errorString = QObject::tr( "av_malloc() failed." );
|
|
||||||
@@ -380,7 +380,7 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( !Qt4x5::AtomicInt::loadAcquire( isCancelled_ ) &&
|
|
||||||
- codecContext_->codec->capabilities & CODEC_CAP_DELAY )
|
|
||||||
+ codecContext_->codec->capabilities & AV_CODEC_CAP_DELAY )
|
|
||||||
{
|
|
||||||
av_init_packet( &packet );
|
|
||||||
int gotFrame = 0;
|
|
||||||
|
|
|
@ -1,22 +1,25 @@
|
||||||
# Template file for 'goldendict'
|
# Template file for 'goldendict'
|
||||||
pkgname=goldendict
|
pkgname=goldendict
|
||||||
version=1.5.0RC2
|
version=1.5.0
|
||||||
revision=6
|
revision=1
|
||||||
build_style=qmake
|
build_style=qmake
|
||||||
configure_args="CONFIG+=zim_support"
|
configure_args="CONFIG+=zim_support goldendict.pro"
|
||||||
hostmakedepends="qt5-qmake pkg-config qt5-host-tools"
|
hostmakedepends="qt5-qmake pkg-config qt5-host-tools"
|
||||||
makedepends="tiff-devel qt5-devel libvorbis-devel zlib-devel
|
makedepends="tiff-devel qt5-devel libvorbis-devel zlib-devel
|
||||||
libXtst-devel hunspell-devel qt5-tools-devel qt5-declarative-devel
|
libXtst-devel hunspell-devel qt5-tools-devel qt5-declarative-devel
|
||||||
qt5-webkit-devel lzo-devel bzip2-devel libao-devel qt5-svg-devel
|
qt5-webkit-devel lzo-devel bzip2-devel libao-devel qt5-svg-devel
|
||||||
libeb-devel qt5-x11extras-devel ffmpeg-devel liblzma-devel"
|
libeb-devel qt5-x11extras-devel ffmpeg-devel liblzma-devel
|
||||||
|
qt5-multimedia-devel"
|
||||||
short_desc="A feature-rich dictionary lookup program"
|
short_desc="A feature-rich dictionary lookup program"
|
||||||
maintainer="John <me@johnnynator.dev>"
|
maintainer="John <me@johnnynator.dev>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="http://goldendict.org/"
|
homepage="http://goldendict.org/"
|
||||||
distfiles="https://github.com/goldendict/goldendict/archive/${version/RC/-RC}.tar.gz"
|
distfiles="https://github.com/goldendict/goldendict/archive/${version}.tar.gz"
|
||||||
checksum=bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde
|
checksum=f9f8e068ece74cc026fdc5f56615246228b4e70c97c7197ccd4c14ceae412c7c
|
||||||
|
|
||||||
CXXFLAGS="-std=c++14 -Wno-deprecated"
|
post_patch() {
|
||||||
|
vsed -e '/VERSION/ s/+git//' -i goldendict.pro
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
chmod 644 ${DESTDIR}/usr/share/pixmaps/goldendict.png
|
chmod 644 ${DESTDIR}/usr/share/pixmaps/goldendict.png
|
||||||
|
|
Loading…
Add table
Reference in a new issue