mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-23 15:54:07 +01:00
media-converter: Add media-converter gstreamer plugin
This commit is contained in:
parent
2605bdf477
commit
f21922d970
19 changed files with 3395 additions and 6 deletions
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
#build and install recent mingw-w64
|
||||
if [ ! -e "$HOME/.local/bin/x86_64-w64-mingw32-gcc" ]; then
|
||||
mkdir -p $HOME/mingw-w64-build/
|
||||
|
|
@ -7,3 +9,25 @@ if [ ! -e "$HOME/.local/bin/x86_64-w64-mingw32-gcc" ]; then
|
|||
#clean up the build tree, this takes up like 6GB
|
||||
rm -rf $HOME/mingw-w64-build/
|
||||
fi
|
||||
|
||||
#install rust with x86_64 and i686 targets
|
||||
RUST_VERSION="1.44.1"
|
||||
RUST_CARGO_HOME=$HOME/rust/cargo
|
||||
RUST_RUSTUP_HOME=$HOME/rust/rustup
|
||||
if [ ! -e "$RUST_CARGO_HOME" ]; then
|
||||
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $HOME/rustup-install.sh
|
||||
|
||||
#64-bit toolchain
|
||||
CARGO_HOME=$RUST_CARGO_HOME RUSTUP_HOME=$RUST_RUSTUP_HOME \
|
||||
sh $HOME/rustup-install.sh -y --no-modify-path \
|
||||
--default-host "x86_64-unknown-linux-gnu" \
|
||||
--default-toolchain "$RUST_VERSION-x86_64-unknown-linux-gnu" \
|
||||
-t "i686-unknown-linux-gnu"
|
||||
|
||||
cat > $HOME/.local/bin/cargo <<EOF
|
||||
PATH=$RUST_CARGO_HOME/bin/:\$PATH CARGO_HOME=$RUST_CARGO_HOME RUSTUP_HOME=$RUST_RUSTUP_HOME cargo \$@
|
||||
EOF
|
||||
|
||||
chmod 755 $HOME/.local/bin/cargo
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue