blob: d4811f742dcad79a7505b3d4625e8e8adf5762b6 (
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: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=ifind-bin
_pkgname=iFinD
_appname="com.51${pkgname%-bin}"
pkgver=1.10.12.389.002
pkgrel=1
pkgdesc="同花顺iFinD PC版提供资讯、行情、深度资料、数据浏览器、企业库等功能,满足用户多方面的使用需求。"
arch=(
'aarch64'
'x86_64'
)
url="https://www.51ifind.com/"
_dlurl="https://sp.thsi.cn/staticS3/mobileweb-upload-static-server.file/app_6/downloadcenter"
license=('LicenseRef-custom')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
options=(
'!strip'
'!emptydirs'
)
depends=(
'nss'
'alsa-lib'
'libxrandr'
'libxkbcommon'
'libcups'
'libxcomposite'
'libxdamage'
'at-spi2-core'
'libva'
'libdrm'
'mesa'
'fontconfig'
'dotnet-sdk-5.0'
)
source=("${pkgname%-bin}.sh")
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_dlurl}/${_appname}_uos_${pkgver}_arm64_signed.deb")
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_dlurl}/${_appname}_uos_${pkgver}_amd64_signed.deb")
sha256sums=('936d2d4299699da4e66d836e9001e1ff43fef95c53aef61569a1c3f667283fcd')
sha256sums_aarch64=('b0ea410ad19a827235a88a4075846b30831644d6fbe1d480b39754a4893d2a11')
sha256sums_x86_64=('dd9a36250dd443e17712fc0a2511f3779f7c922c3fdf779d920649cf5ac650f3')
build() {
sed -e "
s/@appname@/${pkgname%-bin}/g
s/@runname@/${_pkgname}/g
" -i "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
sed -e "
s/\"\/opt\/apps\/${_appname}\/files\/bin\/run.sh\"/${pkgname%-bin} %F/g
s/\/opt\/apps\/${_appname}\/entries\/icons\/hicolor\/scalable\/apps\/${_appname}.svg/${pkgname%-bin}/g
s/Name=${_appname}/Name=${_pkgname}/g
" -i "${srcdir}/usr/share/applications/${_appname}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
cp -r "${srcdir}/opt/apps/${_appname}/files/"* "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/usr/share/icons/hicolor/scalable/apps/${_appname}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname%-bin}.svg"
install -Dm644 "${srcdir}/opt/apps/${_appname}/files/cef/LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 "${srcdir}/usr/share/applications/${_appname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
ln -sf "/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.17/libSystem.IO.Compression.Native.a" \
"${pkgdir}/usr/lib/${pkgname%-bin}/libSystem.IO.Compression.Native.a"
ln -sf "/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.17/libSystem.Native.a" \
"${pkgdir}/usr/lib/${pkgname%-bin}/libSystem.Native.a"
ln -sf "/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.17/libSystem.Net.Security.Native.a" \
"${pkgdir}/usr/lib/${pkgname%-bin}/libSystem.Net.Security.Native.a"
ln -sf "/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.17/libSystem.Security.Cryptography.Native.OpenSsl.a" \
"${pkgdir}/usr/lib/${pkgname%-bin}/libSystem.Security.Cryptography.Native.OpenSsl.a"
}
|