diff options
Diffstat (limited to 'pcr/helm')
-rw-r--r-- | pcr/helm/PKGBUILD | 51 | ||||
-rw-r--r-- | pcr/helm/sigemptyset.patch | 11 |
2 files changed, 44 insertions, 18 deletions
diff --git a/pcr/helm/PKGBUILD b/pcr/helm/PKGBUILD index 3d56347ae..5849b36d8 100644 --- a/pcr/helm/PKGBUILD +++ b/pcr/helm/PKGBUILD @@ -1,33 +1,48 @@ -# Maintainer: André Silva <emulatorman@hyperbola.info> - -pkgname=helm -pkgver=0.4.1 -pkgrel=1 -pkgdesc="A cross-platform, polyphonic synthesizer LV2 and VST plugin" -arch=('i686' 'x86_64') -url="http://tytel.org/helm/" +# Maintainer (AUR): gato_lento <vukk.euob at gmail> +# Based on helm-git PKGBUILD by: Christopher Arndt <aur -at- chrisarndt -dot- de> +# Contributor: André Silva <emulatorman@hyperbola.info> + +# parabola changes and rationale: +# - changed tarball name to reduce chance of collisions +# - added missing depends: libxinerama jack libxcursor +# - added patch to fix compile error against recent glibc + +pkgname='helm' +pkgver=0.9.0 +pkgrel=3 +pkgdesc='a cross-platform, polyphonic synthesizer, available standalone and as an LV2 plugin' +arch=('x86_64' 'i686' 'armv7h') +url='http://tytel.org/helm/' license=('GPL') -groups=('lv2-plugins' 'vst-plugins') -depends=('alsa-lib' 'mesa' 'mesa-libgl' 'lv2' 'freetype2' 'jack' 'libxrandr' 'libxinerama' 'libxcursor') +groups=('lv2-plugins') +depends=('alsa-lib' 'freetype2' 'mesa' 'lv2' 'libxinerama' 'jack' 'libxcursor') +conflicts=('helm-git') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mtytel/helm/archive/v${pkgver}.tar.gz" - 'http://www.steinberg.net/sdk_downloads/vstsdk360_22_11_2013_build_100.zip') -md5sums=('ffc3657235f1d97f9634a309281d9ec9' - '1ac422ebb4aa2e86061278412c347b55') + "sigemptyset.patch") +sha256sums=('4004c11fd1d773cc2a12adb5336873bc86c5ecbd370b8da2820fed6ef5ec58ad' + '66c442780c36b5a17c73be7f76b46ba9261e69591d15be4607c90214852b1454') prepare() { - cd "$srcdir/${pkgname}-${pkgver}/builds/linux/VST" - sed -i -e "s|-I ~/srcs/VST3\\\\ SDK|-I $srcdir/VST3\\\\ SDK|" Makefile + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -Np1 -i "$srcdir"/sigemptyset.patch + + for build in standalone/builds/linux builds/linux/VST builds/linux/LV2; do + sed -i -e 's|JUCE_INCLUDE_PNGLIB_CODE=0|JUCE_INCLUDE_PNGLIB_CODE=1|g' \ + "${build}/Makefile" + done } build() { cd "${srcdir}/${pkgname}-${pkgver}" - make PREFIX="/usr" all vst + CXXFLAGS="${CXXFLAGS} -DHAVE_LROUND -Wno-error" + make PREFIX="/usr" standalone lv2 } package() { cd "${srcdir}/${pkgname}-${pkgver}" - make DESTDIR="$pkgdir" install - install -D builds/linux/VST/build/helm.so "$pkgdir/usr/lib/vst/helm.so" + CXXFLAGS="${CXXFLAGS} -DHAVE_LROUND -Wno-error" + make DESTDIR="$pkgdir" install_standalone install_lv2 } diff --git a/pcr/helm/sigemptyset.patch b/pcr/helm/sigemptyset.patch new file mode 100644 index 000000000..c0a843173 --- /dev/null +++ b/pcr/helm/sigemptyset.patch @@ -0,0 +1,11 @@ +--- a/JUCE/modules/juce_audio_formats/codecs/flac/libFLAC/cpu.c 2018-01-24 21:17:51.340789192 +0100 ++++ b/JUCE/modules/juce_audio_formats/codecs/flac/libFLAC/cpu.c 2018-01-24 21:18:15.104457279 +0100 +@@ -247,7 +247,7 @@ void FLAC__cpu_info(FLAC__CPUInfo *info) + #ifdef __ANDROID__
+ sigemptyset (&sigill_sse.sa_mask);
+ #else
+- __sigemptyset(&sigill_sse.sa_mask);
++ sigemptyset(&sigill_sse.sa_mask);
+ #endif
+ sigill_sse.sa_flags = SA_SIGINFO | SA_RESETHAND; /* SA_RESETHAND just in case our SIGILL return jump breaks, so we don't get stuck in a loop */
+ if(0 == sigaction(SIGILL, &sigill_sse, &sigill_save))
|