2021-11-11 04:56:35 +01:00
|
|
|
# Maintainer: yjun <jerrysteve1101 at gmail dot com>
|
2020-10-31 16:33:54 +01:00
|
|
|
|
|
|
|
pkgname=todesk-bin
|
|
|
|
_pkgname=${pkgname%-bin}
|
2022-01-12 09:09:16 +01:00
|
|
|
pkgver=4.1.0
|
2022-03-12 06:36:41 +01:00
|
|
|
pkgrel=2
|
2020-10-31 16:33:54 +01:00
|
|
|
pkgdesc="Remote control and team work"
|
2021-02-09 08:01:04 +01:00
|
|
|
arch=('x86_64' 'aarch64' 'armv7h')
|
2021-03-15 14:13:54 +01:00
|
|
|
url="https://www.todesk.com/"
|
2022-03-12 06:36:41 +01:00
|
|
|
license=('custom')
|
2021-06-23 05:29:09 +02:00
|
|
|
depends=('gtk3')
|
2021-08-12 16:49:25 +02:00
|
|
|
optdepends=("noto-fonts-cjk: Chinese display support")
|
2020-11-28 06:46:32 +01:00
|
|
|
makedepends=('tar')
|
2020-12-30 13:10:44 +01:00
|
|
|
provides=("${_pkgname}")
|
|
|
|
conflicts=("${_pkgname}")
|
2021-02-09 08:01:04 +01:00
|
|
|
# !strip: strip could generate error.
|
|
|
|
# --->
|
2021-06-23 05:29:09 +02:00
|
|
|
# strip: error: the input file './opt/todesk/bin/todesk' has no sections
|
|
|
|
# strip: error: the input file './opt/todesk/bin/todeskd' has no sections
|
2021-02-09 08:01:04 +01:00
|
|
|
#
|
|
|
|
# emptydirs: leave /opt/todesk/config empty dir
|
|
|
|
options=('!strip' 'emptydirs')
|
2020-12-30 13:10:44 +01:00
|
|
|
install="${_pkgname}.install"
|
2022-03-12 06:36:41 +01:00
|
|
|
source=('license.html')
|
2021-03-15 14:13:54 +01:00
|
|
|
source_x86_64=("https://dl.todesk.com/linux/${_pkgname}_${pkgver}_amd64.deb")
|
|
|
|
source_aarch64=("https://dl.todesk.com/linux/${_pkgname}_${pkgver}_aarch64.deb")
|
2021-11-11 04:56:35 +01:00
|
|
|
source_armv7h=("https://dl.todesk.com/linux/${_pkgname}_${pkgver}_armv7l.deb")
|
2022-03-12 06:36:41 +01:00
|
|
|
sha256sums=('402b2db2586c723af990beb0f96249b9680880f4f30e58a7cbe7cbd20b979a0b')
|
2022-01-12 09:09:16 +01:00
|
|
|
sha256sums_x86_64=('5f680225a1366439b7bec8e39e5c88291f68ddee2a311921fd874b036a6a3057')
|
|
|
|
sha256sums_aarch64=('4497ed0ceec012273fe97e187e9786f55ddfbbe22889de593dc1a5f133dde151')
|
|
|
|
sha256sums_armv7h=('0a467cb8f8f636ea9d8c6fa1ef3a79bfee4a36fe3bed2b01b42e2006912e2a57')
|
2020-10-31 16:33:54 +01:00
|
|
|
|
2021-08-12 18:07:15 +02:00
|
|
|
_install() {
|
|
|
|
find ${@: 2} -type f -exec install -Dm$1 {} ${pkgdir}/{} \;
|
|
|
|
}
|
|
|
|
|
2020-12-30 13:10:44 +01:00
|
|
|
build() {
|
|
|
|
mkdir -p ${srcdir}/build
|
2020-11-26 06:00:09 +01:00
|
|
|
|
2020-12-30 13:10:44 +01:00
|
|
|
tar -xf ${srcdir}/data.tar.xz -C ${srcdir}/build
|
2020-11-26 06:00:09 +01:00
|
|
|
}
|
2020-10-31 16:33:54 +01:00
|
|
|
|
2020-11-26 06:00:09 +01:00
|
|
|
package() {
|
2020-12-30 13:10:44 +01:00
|
|
|
cd ${srcdir}/build/
|
2020-11-01 03:53:48 +01:00
|
|
|
|
2020-11-26 06:00:09 +01:00
|
|
|
# binary wrapper
|
2021-08-12 18:07:15 +02:00
|
|
|
install -Dm755 usr/local/bin/${_pkgname} -t ${pkgdir}/usr/bin/
|
2020-11-01 03:53:48 +01:00
|
|
|
|
2020-11-26 06:00:09 +01:00
|
|
|
# lib
|
2021-08-12 18:07:15 +02:00
|
|
|
# find opt/${_pkgname}/lib -type f -exec install -Dm644 {} ${pkgdir}/{} \;
|
|
|
|
_install 644 opt/${_pkgname}/lib
|
2020-11-26 06:00:09 +01:00
|
|
|
|
2021-08-12 16:49:25 +02:00
|
|
|
# icon
|
2021-08-12 18:07:15 +02:00
|
|
|
# find opt/${_pkgname}/res -maxdepth 1 -type f -exec install -Dm644 {} ${pkgdir}/{} \;
|
|
|
|
_install 644 opt/${_pkgname}/res -maxdepth 1
|
2020-11-26 06:00:09 +01:00
|
|
|
|
2021-02-09 08:01:04 +01:00
|
|
|
# config
|
|
|
|
# empty dir
|
|
|
|
install -dm755 ${pkgdir}/opt/${_pkgname}/config
|
|
|
|
|
2020-12-30 13:10:44 +01:00
|
|
|
# binary & scripts
|
2021-08-12 18:07:15 +02:00
|
|
|
install -Dm755 opt/${_pkgname}/bin/${_pkgname}{,c,d} -t ${pkgdir}/opt/${_pkgname}/bin
|
2020-10-31 17:50:24 +01:00
|
|
|
|
2020-10-31 16:33:54 +01:00
|
|
|
# desktop entry
|
2021-03-15 14:13:54 +01:00
|
|
|
install -Dm644 usr/share/applications/${_pkgname}.desktop -t ${pkgdir}/usr/share/applications
|
2020-10-31 16:33:54 +01:00
|
|
|
|
2020-12-30 13:10:44 +01:00
|
|
|
# systemd service
|
|
|
|
install -Dm644 etc/systemd/system/${_pkgname}d.service -t ${pkgdir}/usr/lib/systemd/system
|
|
|
|
|
2020-11-01 03:53:48 +01:00
|
|
|
# icon
|
2021-08-12 18:07:15 +02:00
|
|
|
# find usr/share/icons -type f -exec install -Dm644 {} ${pkgdir}/{} \;
|
|
|
|
_install 644 usr/share/icons
|
2022-03-12 06:36:41 +01:00
|
|
|
|
|
|
|
# license
|
|
|
|
install -Dm644 ${srcdir}/license.html -t ${pkgdir}/usr/share/licenses/${pkgname}/
|
2021-01-20 11:14:17 +01:00
|
|
|
}
|
2020-10-31 16:33:54 +01:00
|
|
|
# vim: set sw=2 ts=2 et:
|