Last active
December 9, 2021 14:54
-
-
Save sukanka/88ddc411ea8e424dde707a800d1003c9 to your computer and use it in GitHub Desktop.
PKGBUILD For rustdesk-bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: taotieren <[email protected]> | |
# Modified: sukanka <su975853527 [AT] gmail [dot] com> | |
pkgname=rustdesk-bin | |
_pkgname=rustdesk | |
pkgver=1.1.8 | |
pkgrel=2 | |
pkgdesc="Yet another remote desktop software, written in Rust. Works out of the box, no configuration required. Great alternative to TeamViewer and AnyDesk! " | |
arch=('x86_64') | |
url="https://github.com/rustdesk/rustdesk" | |
license=('GPL3') | |
provides=(${_pkgname}) | |
depends=('xdotool' 'gtk3') | |
optdepends=('ttf-arphic-uming: Fix font issue') | |
source=("https://github.com/rustdesk/rustdesk/releases/download/${pkgver}/rustdesk-${pkgver}-manjaro-arch.pkg.tar.zst") | |
sha256sums=('8fe8f3179ebdc8660ffdf70c39386894dc25780183101ef464d99fc97eb881d3') | |
noextract=("rustdesk-${pkgver}-manjaro-arch.pkg.tar.zst") | |
prepare() { | |
bsdtar -xf "${srcdir}/rustdesk-${pkgver}-manjaro-arch.pkg.tar.zst" | |
} | |
package() { | |
cp -r "${srcdir}/usr" "${pkgdir}/" | |
cd ${pkgdir}/usr/share/${_pkgname}/files/ | |
sed -i "7c Icon=${_pkgname}" ${_pkgname}.desktop | |
sed -i "s|/var||g" ${_pkgname}.service | |
install -Dm644 ${_pkgname}.service -t ${pkgdir}/usr/lib/systemd/system/ | |
install -Dm644 ${_pkgname}.desktop -t ${pkgdir}/usr/share/applications/ | |
install -Dm644 ${_pkgname}.png -t ${pkgdir}/usr/share/icons/hicolor/256x256/apps | |
rm -rf ${pkgdir}/usr/share/${_pkgname} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should replace https://aur.archlinux.org/packages/rustdesk-bin/