Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 65 lines (47 sloc) 1.91 KB
#!/usr/bin/env beesh
# BEE_VERSION rustdesk-1.1.9_p3278_g67029f20-0
# more info: https://github.com/rustdesk/rustdesk
# https://rustdesk.com/docs/en/dev/build/
# AUR build https://aur.archlinux.org/rustdesk.git
# git clone https://github.com/rustdesk/rustdesk
# git describe --tags --match 1.1.9
SRCURL[0]="https://beehive.molgen.mpg.de/c292986ec430b529e425a88279231281/rustdesk-1.1.9-3278-g67029f20.tar"
PATCHURL+=("https://beehive.molgen.mpg.de/ec2c5086aceca2680eb8e317a545f65d/rustdesk-g67029f20-no-debug-ui.patch")
# git clone https://github.com/microsoft/vcpkg
# git describe --long
SRCURL[1]="https://beehive.molgen.mpg.de/644b2166a4a0005c45d73b8a72636aba/vcpkg-2022.02.02-2682-gd558a1b4a.tar"
# git clone https://aur.archlinux.org/rustdesk.git rustdesk-AUR
SRCURL[2]="https://beehive.molgen.mpg.de/32545bf5e98014467238a53ad7c47afe/rustdesk-AUR.tar"
# https://github.com/c-smile/sciter-sdk/raw/0298f1b34e9a0ff1dffb889d82c506a5da8bfb1e/bin.lnx/x64/libsciter-gtk.so
LIBSCITERURL="https://beehive.molgen.mpg.de/91a95f199569afe4fbf9e433853f8f97/libsciter-gtk.so"
# PATCHURL+=()
build_in_sourcedir
# sourcesubdir_append src
mee_getsources_post() {
mkdir -p ${F}
fetch_one_file ${LIBSCITERURL}
}
#mee_extract() {
# bee_extract "${@}"
#}
#mee_patch() {
# bee_patch "${@}"
#}
mee_configure() {
p=/pkg/rustc-1.66.1-0/profile; [ -e $p ] && . $p
export VCPKG_DISABLE_METRICS=1
vcpkg/bootstrap-vcpkg.sh
export VCPKG_ROOT=${S}/vcpkg
vcpkg/vcpkg install libyuv opus
}
mee_build() {
export CARGO_HOME=$B/.cargo
cargo build --release
}
mee_install() {
install -Dm0755 ${S}/target/release/rustdesk ${D}/usr/share/rustdesk/rustdesk
install -Dm0755 ${S}/rustdesk-AUR/rustdesk ${D}/usr/bin/rustdesk
install -Dm0755 ${F}/libsciter-gtk.so ${D}/usr/lib/libsciter-gtk.so
mkdir -pv ${D}//usr/share/rustdesk/src/ui
install -v -Dm0755 ${S}/src/ui/*.{html,css,tis} ${D}//usr/share/rustdesk/src/ui
}