-
Notifications
You must be signed in to change notification settings - Fork 52
/
VITABUILD
34 lines (30 loc) · 1.56 KB
/
VITABUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
pkgname=soloud
pkgver=9999
pkgrel=1
url="https://solhsa.com/soloud/"
source=("https://github.com/jarikomppa/soloud/archive/7b6cb7185d12b0d3283a9bf30e6cc3295e57a77c.zip" "https://github.com/bkaradzic/bx/raw/bf29ace5ee396dca5620efa26d18bd02cefd78d0/tools/bin/linux/genie")
sha256sums=('SKIP' '80d8fbb733f0f392d9cc3b79e260a4382e94398d6a2ddf44954cc2b935160712')
build() {
chmod +x genie
cd soloud-*/build
../../genie --with-vita-homebrew-only gmake
cd gmake
make -j$(nproc) config=release SoloudStatic
}
package () {
cd soloud-*
mkdir -p $pkgdir/$VITASDK/arm-vita-eabi/{lib,include}
cp lib/libsoloud_static.a $pkgdir/$VITASDK/arm-vita-eabi/lib/libsoloud.a
# fix soloud_speech header which references files from src/
sed -i 's:../src/audiosource/speech/darray.h:soloud_darray.h:' include/soloud_speech.h
sed -i 's:../src/audiosource/speech/klatt.h:soloud_klatt.h:' include/soloud_speech.h
sed -i 's:../src/audiosource/speech/tts.h:soloud_tts.h:' include/soloud_speech.h
# fix klatt header which references resonator.h (possible conflict)
sed -i 's:resonator.h:soloud_resonator.h:' src/audiosource/speech/klatt.h
# copy all these fixed headers over
cp src/audiosource/speech/darray.h $pkgdir/$VITASDK/arm-vita-eabi/include/soloud_darray.h
cp src/audiosource/speech/klatt.h $pkgdir/$VITASDK/arm-vita-eabi/include/soloud_klatt.h
cp src/audiosource/speech/tts.h $pkgdir/$VITASDK/arm-vita-eabi/include/soloud_tts.h
cp src/audiosource/speech/resonator.h $pkgdir/$VITASDK/arm-vita-eabi/include/soloud_resonator.h
cp include/* $pkgdir/$VITASDK/arm-vita-eabi/include
}