blob: 0d2b1d871229dc464830174210de13b4707bbb3b (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Milkii Brewster <milkii on Freenode IRC>
_pkgname=bespokesynth
pkgname="$_pkgname"-git
pkgdesc="Software modular synth, VST host input, transport/Ableton Push (unstable)"
pkgver=r259.042693b
pkgrel=1
arch=(x86_64)
url="https://github.com/awwbees/BespokeSynth"
license=(GPL3)
depends=('jack' 'curl' 'mesa' 'xorg-xrandr' 'python' 'libxext' 'ladspa')
makedepends=('gcc' 'libx11' 'libxinerama' 'freetype2' )
checkdepends=()
optdepends=()
provides=('bespokesynth' 'bespokesynth-bin')
conflicts=('bespokesynth' 'bespokesynth-bin')
replaces=()
noextract=()
source=($_pkgname::git+https://github.com/awwbees/BespokeSynth)
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$_pkgname"
sed -i -e 's/usb-1.0/usb-1.0;python3.8/' BespokeSynth.jucer
sed -i -e 's/python-config/python3-config/' BespokeSynth.jucer
sed -i -e 's/JUCE_PLUGINHOST_VST="1"/JUCE_PLUGINHOST_VST="1" JUCE_WEB_BROWSER="0"/' BespokeSynth.jucer
### Launch a virtual framebuffer X server ###
export DISPLAY=":98"
Xvfb $DISPLAY >& Xvfb.log &
trap "kill $! || true" EXIT
sleep 10
Projucer --set-global-search-path linux defaultJuceModulePath /usr/share/juce/modules
Projucer --resave BespokeSynth.jucer
}
build() {
cd "$_pkgname"
# ./configure --prefix=/usr
cd Builds/LinuxMakefile
CONFIG=Release make
}
package() {
cd "$_pkgname"
mkdir -p ${pkgdir}/usr/share/BespokeSynth
install ${srcdir}/Builds/LinuxMakefile/build/BespokeSynth ${pkgdir}/usr/share/BespokeSynth
mkdir -p ${pkgdir}/usr/share/icons/hicolor/512x512/apps
install ${srcdir}/Builds/LinuxMakefile/build/BespokeSynth/bespoke_icon.png ${pkgdir}/usr/share/icons/hicolor/512x512/apps
}
|