blob: de44725b2f96285a83b00ced52d434eea8e28a96 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# Maintainer: yjun <jerrysteve1101 at gmail dot com>
# Maintainer: zhullyb <zhullyb at outlook dot com>
pkgname=sunloginclient
_pkgname=sunlogin
_debname=SunloginClient
pkgver=15.2.0.63064
pkgrel=1
pkgdesc="Proprietary software that supports remote control of mobile devices, Windows, Mac, Linux and other systems.(GUI version)"
arch=("x86_64")
url="https://sunlogin.oray.com"
depends=("libappindicator-gtk3"
'xorg-xhost'
'libcrypt.so=1-64')
license=('custom')
provides=('sunlogin')
source=("runsunloginclient.service"
'LICENSE::https://service.oray.com/question/1820.html')
source_x86_64=("https://down.oray.com/${_pkgname}/linux/${_debname}_${pkgver}_amd64.deb")
source_aarch64=("https://down.oray.com/${_pkgname}/linux/${_debname}_${pkgver}_kylin_arm.deb")
install="${pkgname}.install"
options=(emptydirs)
sha256sums=('bdf8bae0231c1ba656adba5d8fb519fa00eb2294dee487e8c06b4ffd3e9f487e'
'SKIP')
sha256sums_x86_64=('c4e6b996f1cc17a759a36ad44522ec70cf6dca2c0a331c04385b0df6cf0d872d')
build() {
mkdir -p build
tar -xf data.tar.xz -C build
}
_install (){
cd ${srcdir}/build
find usr/local/${_pkgname}/$1 -maxdepth 1 -type f -exec \
install -Dm$2 {} -t ${pkgdir}/opt/${_pkgname}/$1 \;
}
package() {
cd build
# system service
install -Dm644 ${srcdir}/run${pkgname}.service -t \
"${pkgdir}/usr/lib/systemd/system/"
# bin
_install bin 755
# etc
# empty dir
install -dm755 ${pkgdir}/opt/${_pkgname}/etc
# lib
_install lib 644
# res
_install res 644
# res/font
_install res/font 644
# res/icon
_install res/icon 644
# res/locales
_install res/locales 644
# res/skin
_install res/skin 644
# desktop entry
install -Dm644 usr/share/applications/${_pkgname}.desktop -t \
${pkgdir}/usr/share/applications
# fix path
sed -i -e "
s#Exec=/usr/local/sunlogin/#Exec=/usr/#g
s#Icon=/usr/local/sunlogin/res/icon/sunlogin_client.png#Icon=sunloginclient#g
" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
# icon
install -Dm644 usr/local/${_pkgname}/res/icon/sunlogin_client.png \
${pkgdir}/usr/share/pixmaps/${pkgname}.png
# license
install -Dm644 ${srcdir}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# soft link
install -dm755 "$pkgdir/usr/bin"
ln -sf "/opt/${_pkgname}/bin/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
# ugly hack
sed -i "s#/usr/local/sunlogin#///////opt/sunlogin#g" \
"${pkgdir}/opt/${_pkgname}/bin/${pkgname}" \
"${pkgdir}/opt/${_pkgname}/bin/${pkgname}_desktop" \
"${pkgdir}/opt/${_pkgname}/bin/oray_rundaemon"
}
# vim: ts=2 sw=2 et:
|