blob: c3d6b08ceab9051bc4e4a6e628f3844046342167 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Junxuan Liao <mikeljx at 126 dot com>
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: aksr <aksr at t-com dot me>
# Contributor: VirtualTam <virtualtam@flibidi.net>
# Contributor: Eugene Yudin aka Infy <Eugene dot Yudin at gmail dot com>
pkgname='goldendict'
pkgver=1.5.0
pkgrel=4
epoch=1
pkgdesc='Feature-rich dictionary lookup program supporting multiple dictionary formats'
arch=('i686' 'x86_64')
url="https://github.com/${pkgname}/${pkgname}"
license=('GPL-3.0-or-later')
depends=(
'bzip2'
'ffmpeg'
'gcc-libs'
'glibc'
'hunspell'
'libao'
'libeb'
'libtiff'
'libvorbis'
'libx11'
'libxtst'
'lzo'
'opencc'
'qt5-base'
'qt5-multimedia'
'qt5-svg'
'qt5-tools'
'qt5-webkit'
'qt5-x11extras'
'xz'
'zlib'
'zstd'
)
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz"
"0001-add-support-for-ffmpeg-7.0.patch"
)
sha256sums=('f9f8e068ece74cc026fdc5f56615246228b4e70c97c7197ccd4c14ceae412c7c'
'ff2c5639a10c93b010f8ba4fb5489faab1f14977dbf7dec59c698254ccb62947')
prepare() {
cd "${pkgname}-${pkgver}"
patch --forward --strip=1 --input=../0001-add-support-for-ffmpeg-7.0.patch
echo "Fixing QMake in goldendict.pro file..."
echo "QMAKE_CXXFLAGS_RELEASE = ${CFLAGS}" >> goldendict.pro
echo "QMAKE_CFLAGS_RELEASE = ${CXXFLAGS}" >> goldendict.pro
sed -i '/VERSION/ s/+git//' goldendict.pro
}
build(){
cd "${pkgname}-${pkgver}"
qmake-qt5 \
'CONFIG+=chinese_conversion_support' \
'CONFIG+=zim_support' \
PREFIX='/usr' \
goldendict.pro
make
}
package() {
cd "${pkgname}-${pkgver}"
make INSTALL_ROOT="${pkgdir}" install
}
|