blob: a0c5824af3c57ca487eb111b6aa386ff797efe83 (
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
70
71
72
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
_pkgname=eshelper
pkgname="eusoft-${_pkgname}-bin"
pkgver=2024.08.20
pkgrel=1
pkgdesc="西班牙语助手,权威的西班牙语词典软件,西班牙语学习者必备的工具.支持学习笔记、生词本多平台同步,让你随时随地学西班牙语."
arch=('x86_64')
url="https://www.esdict.cn/"
license=('LicenseRef-custom')
conflicts=(
"${pkgname%-bin}"
"${_pkgname}"
)
options=('!strip')
depends=(
'alsa-lib'
'gtk3'
'aalib'
'cdparanoia'
'graphene'
'gst-plugins-bad-libs'
'gst-plugins-base-libs'
'gstreamer'
'lame'
'libavc1394'
'libcaca'
'libdv'
'libgudev'
'libiec61883'
'libogg'
'libpulse'
'libraw1394'
'libshout'
'libsoup'
'libtheora'
'libvorbis'
'libxv'
'mpg123'
'nss'
'openssl-1.0'
'opus'
'orc'
'pipewire-jack'
'speex'
'twolame'
'v4l-utils'
'wavpack'
)
source=(
"${pkgname%-bin}-${pkgver}.deb::https://www.eudic.net/download/${_pkgname}.deb?v=${pkgver//./-}"
"LICENSE.html::https://dict.eudic.net/home/privacy"
"${pkgname%-bin}.sh"
)
sha256sums=('59af3b48c1cda58220e303c479d8244257fb2d7c7be7d229b83f3e8dc23ee358'
'89862f4074e530896863738bf9d49c03c8d0cd0f6a543d4ccc1cdc53e8f83a24'
'ad3e35428234bc137bb85f2364bba92e7057a6074f08c17a775274995aaa44d4')
build() {
sed -e "s|@appname@|${pkgname%-bin}|g" \
-e "s|@appasar@|${_pkgname}|g" \
-i "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
sed "s|/usr/share/${pkgname%-bin}/AppRun|${pkgname%-bin}|g;s|com.eusoft.${_pkgname}|${pkgname%-bin}|g" \
-i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/opt"
cp -r "${srcdir}/usr/share/${pkgname%-bin}" "${pkgdir}/opt"
install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/usr/share/pixmaps/com.eusoft.${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/LICENSE.html" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|