1
0
Fork 0
mirror of https://git.suyu.dev/suyu/flatpak.git synced 2025-01-08 15:26:05 +00:00
yuzu-suyu-flatpak/shared-modules/linux-audio/patches/stk-install.sh

55 lines
2.1 KiB
Bash
Raw Normal View History

2024-03-07 23:28:57 +00:00
INCLUDE_DIR=/app/include
DATA_DIR=/app/share
LIB_DIR=/app/lib
BIN_DIR=/app/bin
install -Dm644 -t $INCLUDE_DIR/stk include/*
install -Dm644 -t $LIB_DIR src/libstk.*
install -Dm644 -t $DATA_DIR/stk/rawwaves rawwaves/*.raw
#cp -pr projects/demo/tcl $DATA_DIR/stk/demo
#cp -pr projects/demo/scores $DATA_DIR/stk/demo
#cp -p projects/demo/demo $BIN_DIR/stk-demo
#cp -p projects/demo/Md2Skini $BIN_DIR/Md2Skini
#for f in Banded Drums Modal Physical Shakers StkDemo Voice ; do
# chmod +x projects/demo/$f
# sed -e 's,\./demo,$BIN_DIR/stk-demo,' -e '1i#! /bin/sh' \
# -i projects/demo/$f
# cp -p projects/demo/$f $DATA_DIR/stk/demo
#done
#cp -pr projects/examples/midifiles $DATA_DIR/stk/examples
#cp -pr projects/examples/rawwaves $DATA_DIR/stk/examples
#cp -pr projects/examples/scores $DATA_DIR/stk/examples
#for f in sine sineosc foursine audioprobe midiprobe duplex play \
# record inetIn inetOut rtsine crtsine bethree controlbee \
# threebees playsmf grains ; do
# cp -p projects/examples/$f $BIN_DIR/stk-$f
# # absolute links, will be shortened later
# ln -s $BIN_DIR/stk-$f $DATA_DIR/stk/examples/$f
#done
install -Dm644 -t $DATA_DIR/stk/effects projects/effects/tcl
install -Dm644 -t $BIN_DIR/stk-effects projects/effects/effects
sed -e 's,\./effects,$BIN_DIR/stk-effects,' -e '1i#! /bin/sh' \
-i projects/effects/StkEffects
install -Dm644 -t $DATA_DIR/stk/effects projects/effects/StkEffects
install -Dm644 -t $DATA_DIR/stk/ragamatic projects/ragamatic/tcl
install -Dm644 -t $DATA_DIR/stk/ragamatic projects/ragamatic/rawwaves
install -Dm644 -t $BIN_DIR/stk-ragamat projects/ragamatic/ragamat
sed -e 's,\./ragamat,$BIN_DIR/stk-ragamat,' -e '1i#! /bin/sh' \
-i projects/ragamatic/Raga
install -Dm644 -t $DATA_DIR/stk/ragamatic projects/ragamatic/Raga
install -Dm644 -t $DATA_DIR/stk/eguitar projects/eguitar/tcl
install -Dm644 -t $DATA_DIR/stk/eguitar projects/eguitar/scores
install -Dm644 -t $BIN_DIR/stk-eguitar projects/eguitar/eguitar
sed -e 's,\./eguitar,$BIN_DIR/stk-eguitar,' -e '1i#! /bin/sh' \
-i projects/eguitar/ElectricGuitar
install -Dm644 -t $DATA_DIR/stk/eguitar projects/eguitar/ElectricGuitar