2022-04-13 21:10:51 +00:00
|
|
|
#!/bin/sh
|
2022-01-25 15:53:41 +00:00
|
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
2022-03-24 22:25:24 +00:00
|
|
|
DIR=/tmp/appdwarf/rust
|
2022-01-02 05:18:37 +00:00
|
|
|
mkdir -p $DIR
|
|
|
|
|
|
|
|
eopkg fc -o $DIR cargo rust
|
2022-04-13 21:10:51 +00:00
|
|
|
parallel "unzip -op {} install.tar.xz | tar xJf - -C$DIR" ::: $DIR/*.eopkg
|
|
|
|
rm $DIR/*.eopkg
|
2022-01-02 05:18:37 +00:00
|
|
|
rm -r $DIR/usr/lib64/rustlib/i686-unknown-linux-gnu
|
|
|
|
|
2022-04-13 21:10:51 +00:00
|
|
|
cp "$(dirname "$(readlink -f "${0}")")"/../AppRun $DIR/usr
|
2022-06-11 19:02:34 +00:00
|
|
|
sed -i 4s#/#/bin/# $DIR/usr/AppRun
|
2022-01-02 05:18:37 +00:00
|
|
|
|
|
|
|
appdwarf $DIR/usr
|
|
|
|
mv $DIR/usr.sh cargo
|
|
|
|
rm -rf $DIR
|