Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flathub/shared-modules.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2020-05-16 00:58:18 +0300
committerHubert Figuière <hub@figuiere.net>2020-05-16 03:14:52 +0300
commit760dd33fa2025819b9cb645041e2619ae8b2f54a (patch)
tree966741d0ea9b5d5afabb68fc19407fb34d553683 /linux-audio
parent73bd21ee0a0eeebd22ac8d36adbcd18a4a522b08 (diff)
Added stk.json (with its install script)
Diffstat (limited to 'linux-audio')
-rw-r--r--linux-audio/patches/stk-install.sh54
-rw-r--r--linux-audio/stk.json28
2 files changed, 82 insertions, 0 deletions
diff --git a/linux-audio/patches/stk-install.sh b/linux-audio/patches/stk-install.sh
new file mode 100644
index 0000000..e2d9c9b
--- /dev/null
+++ b/linux-audio/patches/stk-install.sh
@@ -0,0 +1,54 @@
+
+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
diff --git a/linux-audio/stk.json b/linux-audio/stk.json
new file mode 100644
index 0000000..cf4d8f9
--- /dev/null
+++ b/linux-audio/stk.json
@@ -0,0 +1,28 @@
+{
+ "name": "stk",
+ "build-commands": [
+ "make -j $FLATPAK_BUILDER_N_JOBS -C src",
+ "make -j $FLATPAK_BUILDER_N_JOBS -C projects/effects libeffects",
+ "make -j $FLATPAK_BUILDER_N_JOBS -C projects/ragamatic libragamat",
+ "make -j $FLATPAK_BUILDER_N_JOBS -C projects/eguitar libeguitar"
+ ],
+ "post-install": [
+ "sh ./stk-install.sh"
+ ],
+ "cleanup": [
+ "/bin/*",
+ "/include",
+ "*.a"
+ ],
+ "sources": [
+ {
+ "type": "archive",
+ "url": "http://ccrma.stanford.edu/software/stk/release/stk-4.6.1.tar.gz",
+ "sha256": "e77ba3c80cdd93ca02c34098b9b7f918df3d648c87f1ed5d94fe854debd6d101"
+ },
+ {
+ "type": "file",
+ "path": "patches/stk-install.sh"
+ }
+ ]
+}