pkgname
=
ksa
pkgver
=
0.80
pkgrel
=
2
pkgdesc
=
"Kanxue Security Access. 看雪安全接入,无需公网IP,远程接入内网"
arch
=
(
'i686'
'x86_64'
'armv7h'
'aarch64'
)
license
=
(
'unknow'
)
depends
=
(
'unzip'
)
source
=
(
"KSA_${pkgver}.zip::https://ksa.kanxue.com/view/img/product/KSA_${pkgver}.zip"
"ksa.service"
)
sha256sums
=
(
'168fbb25a106f170fa626871c7b1653c72b57a4e3ead082d81f4504f8ed8280f'
'44bebc2bfddc4f0b3873f7ae68c7b7d0c4d49edd1a63795062b3a2198c37fb77'
)
url
=
"https://ksa.kanxue.com/"
conflicts
=
(
"ksa"
)
replaces
=
(
"ksa"
)
options
=
(!strip)
package(){
install
-
dm755
"${pkgdir}/opt/KSA"
\
"${pkgdir}/usr/bin/"
install
-
Dm644
"${srcdir}/ksa.service"
"${pkgdir}/usr/lib/systemd/system/ksa.service"
cd
"${srcdir}/KSA_${pkgver}/KSA_linux"
install
-
Dm644 ksa.conf
"${pkgdir}/opt/KSA"
if
[ ${CARCH}
=
"armv7h"
]; then
install
-
Dm755 ksa_arm
"${pkgdir}/opt/KSA/ksa"
elif
[ ${CARCH}
=
"aarch64"
]; then
install
-
Dm755 ksa_arm64
"${pkgdir}/opt/KSA/ksa"
elif
[ ${CARCH}
=
"x86_64"
]; then
install
-
Dm755 ksa_x64
"${pkgdir}/opt/KSA/ksa"
else
install
-
Dm755 ksa_x86
"${pkgdir}/opt/KSA/ksa"
fi
for
f
in
ksa; do
ln
-
sf
/
opt
/
KSA
/
"$f"
"${pkgdir}/usr/bin"
done
}