blob: fe480f12537e3357b64c1ddc3422edff993ba165 (
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
|
# Maintainer: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
pkgname=helio-workstation-git
pkgver=v1.7.r16.43d4dc6
pkgrel=3
pkgdesc='Free and open source music sequencer'
arch=('x86_64')
url='https://helioworkstation.com/'
license=('GPL3')
depends=('alsa-lib' 'curl')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/peterrudenko/helio-workstation.git"
"JUCE::git+https://github.com/WeAreROLI/JUCE.git")
md5sums=('SKIP'
'SKIP')
noextract=()
prepare() {
cd "$srcdir/${pkgname%-git}"
git submodule init
git config submodule.ThirdParty/JUCE.url $srcdir/JUCE
git submodule update
cd "$srcdir/${pkgname%-git}/ThirdParty/JUCE/extras/Projucer/Builds/LinuxMakefile"
sed -i 's/\/\/#define\ JUCE_WEB_BROWSER/#define\ JUCE_WEB_BROWSER 0/g' ../../JuceLibraryCode/AppConfig.h
sed -i 's/webkit2gtk-4.0//g' Makefile
}
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${pkgname%-git}/ThirdParty/JUCE/extras/Projucer/Builds/LinuxMakefile"
CONFIG=Release make
./build/Projucer --resave ./../../../../../../Projects/Projucer/Helio\ Workstation.jucer
cd "$srcdir/${pkgname%-git}/Projects/LinuxMakefile"
CONFIG=Release64 make
}
package() {
cd "$srcdir/${pkgname%-git}/Projects/Installers/Linux/Helio-1.7-amd64/"
cp -r usr "$pkgdir/usr"
cd "$srcdir/${pkgname%-git}/Projects/LinuxMakefile/build"
install -dm775 "$pkgdir/opt/helio_workstation/"
install -m755 "Helio" "$pkgdir/opt/helio_workstation/helio_workstation"
}
|