[updpkg] todesk-bin 1.2.0

This commit is contained in:
yjun 2020-12-30 20:10:44 +08:00
parent 9de56f6f5d
commit 0ba335fc16
3 changed files with 48 additions and 18 deletions

View file

@ -1,15 +1,18 @@
pkgbase = todesk-bin pkgbase = todesk-bin
pkgdesc = Remote control and team work pkgdesc = Remote control and team work
pkgver = 1.1.0c pkgver = 1.2.0
pkgrel = 2 pkgrel = 1
url = https://www.todesk.cn/ url = https://www.todesk.cn/
install = todesk.install
arch = x86_64 arch = x86_64
license = custom license = unknown
makedepends = tar makedepends = tar
depends = libxtst
depends = freetype2
provides = todesk provides = todesk
conflicts = todesk conflicts = todesk
source = todesk-1.1.0c.deb::https://update.todesk.com/todeskBeta_1.1.0c.deb source = https://update.todesk.com/todesk_1.2.0.deb
sha256sums = 0d93806f7275be5487ed91fe4cfc4deea452a07508d4046a17f8ea7592905735 sha256sums = 7d14ee8cfd3312e75be620b2f7441d81206827e3df01c12d3a9ed90c23140330
pkgname = todesk-bin pkgname = todesk-bin

View file

@ -2,26 +2,29 @@
pkgname=todesk-bin pkgname=todesk-bin
_pkgname=${pkgname%-bin} _pkgname=${pkgname%-bin}
pkgver=1.1.0c pkgver=1.2.0
pkgrel=2 pkgrel=1
pkgdesc="Remote control and team work" pkgdesc="Remote control and team work"
arch=('x86_64') arch=('x86_64')
url="https://www.todesk.cn/" url="https://www.todesk.cn/"
license=('custom' ) license=('unknown')
depends=('libxtst'
'freetype2')
makedepends=('tar') makedepends=('tar')
provides=("${pkgname%-bin}") provides=("${_pkgname}")
conflicts=("${pkgname%-bin}") conflicts=("${_pkgname}")
source=("${_pkgname}-${pkgver}.deb::https://update.todesk.com/${_pkgname}Beta_${pkgver}.deb") install="${_pkgname}.install"
sha256sums=('0d93806f7275be5487ed91fe4cfc4deea452a07508d4046a17f8ea7592905735') source=("https://update.todesk.com/${_pkgname}_${pkgver}.deb")
sha256sums=('7d14ee8cfd3312e75be620b2f7441d81206827e3df01c12d3a9ed90c23140330')
prepare() { build() {
install -dm 755 ${srcdir}/${_pkgname} mkdir -p ${srcdir}/build
tar --owner=root --group=root -xf ${srcdir}/data.tar.xz -C ${srcdir}/${_pkgname} tar -xf ${srcdir}/data.tar.xz -C ${srcdir}/build
} }
package() { package() {
cd ${srcdir}/${_pkgname}/ cd ${srcdir}/build/
# binary wrapper # binary wrapper
install -Dm 755 usr/local/bin/${_pkgname} -t ${pkgdir}/usr/bin/ install -Dm 755 usr/local/bin/${_pkgname} -t ${pkgdir}/usr/bin/
@ -33,16 +36,22 @@ package() {
# font # font
find opt/${_pkgname}/res -type f -exec install -Dm644 {} ${pkgdir}/{} \; find opt/${_pkgname}/res -type f -exec install -Dm644 {} ${pkgdir}/{} \;
# binary # binary & scripts
install -Dm755 opt/${_pkgname}/${_pkgname} -t ${pkgdir}/opt/${_pkgname}/ install -Dm755 opt/${_pkgname}/${_pkgname} -t ${pkgdir}/opt/${_pkgname}/
install -Dm755 opt/${_pkgname}/${_pkgname}d -t ${pkgdir}/opt/${_pkgname}/
install -Dm755 opt/${_pkgname}/daemon.sh -t ${pkgdir}/opt/${_pkgname}/
# qt.conf # qt.conf & todeskd.conf
install -Dm644 opt/${_pkgname}/qt.conf -t ${pkgdir}/opt/${_pkgname}/ install -Dm644 opt/${_pkgname}/qt.conf -t ${pkgdir}/opt/${_pkgname}/
install -Dm644 opt/${_pkgname}/${_pkgname}d.conf -t ${pkgdir}/opt/${_pkgname}/
# desktop entry # desktop entry
install -Dm 644 usr/share/applications/${_pkgname}.desktop -t ${pkgdir}/usr/share/applications install -Dm 644 usr/share/applications/${_pkgname}.desktop -t ${pkgdir}/usr/share/applications
sed -i "s|Emulator;||g" ${pkgdir}/usr/share/applications/${_pkgname}.desktop sed -i "s|Emulator;||g" ${pkgdir}/usr/share/applications/${_pkgname}.desktop
# systemd service
install -Dm644 etc/systemd/system/${_pkgname}d.service -t ${pkgdir}/usr/lib/systemd/system
# icon # icon
install -Dm 644 usr/share/pixmaps/${_pkgname}.png -t ${pkgdir}/usr/share/pixmaps install -Dm 644 usr/share/pixmaps/${_pkgname}.png -t ${pkgdir}/usr/share/pixmaps
} }

18
todesk.install Normal file
View file

@ -0,0 +1,18 @@
post_install() {
ECHOLEN=$(echo -e|awk '{print length($0)}')
if [ ${ECHOLEN} = '0' ]
then
ECHO='echo -e'
else
ECHO='echo'
fi
$ECHO "\033[36m**************************************************************\033[0m"
$ECHO "\033[36m* Start todesk daemon *\033[0m"
$ECHO "\033[36m* Type: systemctl start todeskd.service *\033[0m"
$ECHO "\033[36m**************************************************************\033[0m"
}
post_upgrade() {
post_install
}