summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChristopher Arndt2019-11-25 16:19:05 +0100
committerChristopher Arndt2019-11-25 16:19:05 +0100
commit8ab7ece72c39ef44b9053cb96f15411a02c1721e (patch)
tree8bd5b2ca782aece02467f12c83a8108d2b41c404 /PKGBUILD
parent55676234983d0e2e7eccd9cb8359fadb43640e77 (diff)
downloadaur-helm-git.tar.gz
Fix compilation with GCC >= 9.x; fix VST binary install dir
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 17 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 04c6e3d05e8..c8f76b93d2b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=helm
pkgname="${_pkgname}-git"
pkgver=0.9.0.r1897.abdedd52
-pkgrel=1
+pkgrel=2
pkgdesc="a cross-platform, polyphonic synthesizer LV2 and VST plugin"
arch=('i686' 'x86_64')
url="http://tytel.org/helm/"
@@ -13,8 +13,10 @@ depends=('alsa-lib' 'curl' 'freetype2' 'hicolor-icon-theme' 'mesa' 'libxinerama'
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
-source=("${_pkgname}::git+https://github.com/mtytel/helm.git")
-md5sums=('SKIP')
+source=("${_pkgname}::git+https://github.com/mtytel/helm.git"
+ 'juce-gcc.diff')
+md5sums=('SKIP'
+ '2495dfc19287544c0ac87dae3837b3be')
changelog=ChangeLog
@@ -25,6 +27,12 @@ pkgver() {
echo "${ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
+prepare() {
+ cd "${srcdir}/${_pkgname}"
+
+ patch -p1 -N -i "${srcdir}"/juce-gcc.diff
+}
+
build() {
cd "${srcdir}/${_pkgname}"
@@ -34,6 +42,10 @@ build() {
package() {
cd "${srcdir}/${_pkgname}"
- make CONFIG=Release PREFIX="/usr" DESTDIR="$pkgdir" install
- install -D builds/linux/VST/build/helm.so "$pkgdir/usr/lib/vst/helm.so"
+ make \
+ CONFIG=Release \
+ PREFIX="/usr" \
+ DESTDIR="$pkgdir" \
+ VSTDIR="$pkgdir/usr/lib/vst" \
+ install
}