mirror of
https://aur.archlinux.org/rustdesk-bin.git
synced 2025-10-02 04:42:04 +08:00
55 lines
2.1 KiB
Bash
55 lines
2.1 KiB
Bash
# Maintainer: KUHTOXO https://aur.archlinux.org/account/kuhtoxo
|
|
# Maintainer: Zoddo <archlinux+aur@zoddo.fr>
|
|
# Contributor: void09 <sgmihai at gmail dot com>
|
|
# Contributor: taotieren <admin@taotieren.com>
|
|
# Contributor: Leon Möller <jkhsjdhjs at totally dot rip>
|
|
|
|
pkgbase=rustdesk-bin
|
|
pkgname=(rustdesk-bin)
|
|
pkgver=1.4.2
|
|
pkgrel=1
|
|
pkgdesc="Yet another remote desktop software, written in Rust. Works out of the box, no configuration required."
|
|
url="https://github.com/rustdesk/rustdesk"
|
|
license=('AGPL-3.0-only')
|
|
arch=('x86_64' 'aarch64')
|
|
provides=("${pkgname%-bin}")
|
|
conflicts=("${pkgname%-bin}")
|
|
depends=(
|
|
'gtk3'
|
|
'xdotool'
|
|
'libxcb'
|
|
'libxfixes'
|
|
'alsa-lib'
|
|
'libva'
|
|
'libvdpau'
|
|
'pam'
|
|
'gst-plugins-base'
|
|
'gst-plugin-pipewire'
|
|
)
|
|
optdepends=(
|
|
'libappindicator-gtk3: tray icon'
|
|
'libayatana-appindicator: tray icon'
|
|
)
|
|
options=('!strip' '!lto' '!debug')
|
|
source_x86_64=("${pkgbase%-bin}-${pkgver}-${pkgrel}-x86_64.pkg.tar.zst::$url/releases/download/${pkgver/_/-}/rustdesk-${pkgver/_/-}-0-x86_64.pkg.tar.zst")
|
|
source_aarch64=("${pkgbase%-bin}-${pkgver}-${pkgrel}-aarch64.rpm::$url/releases/download/${pkgver/_/-}/rustdesk-${pkgver/_/-}-0.aarch64.rpm")
|
|
sha256sums_x86_64=('f6d253e983b73596969294de768d8dbd8a78237cff02dd3fb0571c7c3a069b03')
|
|
sha256sums_aarch64=('707e73bd6a41054cdf994bb7dcb078954fba053a08fc1c61c786067e2834d49a')
|
|
|
|
install=$pkgname.install
|
|
|
|
package() {
|
|
install -d "${pkgdir}/usr/share/" "${pkgdir}/usr/bin/"
|
|
cp -r "${srcdir}/usr/share/rustdesk/" "${pkgdir}/usr/share/"
|
|
cp -r "${srcdir}/usr/share/icons/" "${pkgdir}/usr/share/"
|
|
|
|
ln -s "/usr/share/rustdesk/rustdesk" "${pkgdir}/usr/bin/rustdesk"
|
|
|
|
install -Dm 644 "${srcdir}/usr/share/rustdesk/files/rustdesk.service" "${pkgdir}/usr/lib/systemd/system/rustdesk.service"
|
|
install -Dm 644 "${srcdir}/usr/share/rustdesk/files/rustdesk.desktop" "${pkgdir}/usr/share/applications/rustdesk.desktop"
|
|
install -Dm 644 "${srcdir}/usr/share/rustdesk/files/rustdesk-link.desktop" "${pkgdir}/usr/share/applications/rustdesk-link.desktop"
|
|
|
|
# Remove useless files
|
|
rm -r "${pkgdir}/usr/share/rustdesk/files/"
|
|
}
|
|
|