diff options
author | taotieren | 2021-06-27 15:30:35 +0800 |
---|---|---|
committer | taotieren | 2021-06-27 15:30:35 +0800 |
commit | f04751936cb5b701aa6b47b71b8174b460087921 (patch) | |
tree | fb4bcb8047565119a507a660097cd3940811db87 /PKGBUILD | |
download | aur-f04751936cb5b701aa6b47b71b8174b460087921.tar.gz |
Update rustdesk-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..88601539ab99 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,87 @@ +# Maintainer: taotieren <admin@taotieren.com> + +pkgname=rustdesk-git +pkgver=1.1.6.r47.g25ffaa7 +pkgrel=1 +pkgdesc="Yet another remote desktop software, written in Rust. Works out of the box, no configuration required. Great alternative to TeamViewer and AnyDesk! " +arch=('any') +url="https://github.com/rustdesk/rustdesk" +license=('GPLv3') +provides=(${pkgname}) +conflicts=(${pkgname} ${pkgname%-git} ${pkgname/git/bin}) +#replaces=(${pkgname}) +depends=( 'gtk3' 'xdotool' 'libxcb' 'libxfixes' 'alsa-lib' 'pulseaudio') +makedepends=('unzip' 'yasm' 'nasm' 'clang' 'zip' 'pkg-config' 'make' 'git' 'cmake' 'gcc' 'curl' 'wget' 'rust') +backup=() +options=('!strip') +#install=${pkgname}.install +source=("${pkgname%-git}::git+${url}.git" + "vcpkg::git+https://github.com/microsoft/vcpkg#commit=ec6fe06e8da05a8157dc8581fa96b36b571c1bd5" + "libsciter-gtk.so::https://github.com/c-smile/sciter-sdk/raw/dc65744b66389cd5a0ff6bdb7c63a8b7b05a708b/bin.lnx/x64/libsciter-gtk.so") +sha256sums=('SKIP' + 'SKIP' + '933402087be7fe14988b43345597158c602fc2adbc7e7631ec82511af5d27698') + +pkgver() { + cd "${srcdir}/${pkgname%-git}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { +# install vcpkg + vcpkg/bootstrap-vcpkg.sh + mkdir -pv ${srcdir}/vcpkg + export VCPKG_ROOT=${srcdir}/vcpkg + vcpkg/vcpkg install libvpx libyuv opus + + cd "${srcdir}/${pkgname%-git}/" + +# install rustdesk + cargo install --no-track --locked --all-features --root "${pkgdir}/usr/" --path . + +# install libsciter-gtk.so + cp -r "${srcdir}/libsciter-gtk.so" "${pkgdir}/usr/bin/" + + install -Dm0644 "${srcdir}/${pkgname%-git}/logo-header.svg" "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.svg" + install -Dm0644 /dev/stdin "${pkgdir}/usr/lib/systemd/system/${pkgname%-git}.service" << EOF +[Unit] +Description=RustDesk +Requires=network.target +After=systemd-user-sessions.service + +[Service] +Type=simple +ExecStart=/usr/bin/${pkgname%-git} --service +PIDFile=/var/run/${pkgname%-git}.pid +KillMode=mixed +TimeoutStopSec=30 +User=root +LimitNOFILE=100000 + +[Install] +WantedBy=multi-user.target +EOF + install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop" << EOF +[Desktop Entry] +Version=${pkgver} +Name=RustDesk +GenericName=Remote Desktop +GenericName[zh_CN]=远程桌面 +Comment=Remote Desktop +Comment[zh_CN]=远程桌面 +Exec=${pkgname%-git} %u +Icon=${pkgname%-git}.svg +Terminal=false +Type=Application +MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https; +StartupNotify=true +Categories=Other; +Keywords=internet; +Actions=new-window; + +X-Desktop-File-Install-Version=0.23 + +[Desktop Action new-window] +Name=Open a New Window +EOF +} |