updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / jost / PKGBUILD
blob4c51127cd0094f45aafb5306f54851dd6acebcfa
1 # Contributor: Ray Rashif <schivmeister@gmail.com>
3 pkgname=jost
4 pkgver=0.4.6
5 pkgrel=3
6 pkgdesc="JACK host for native VST, DSSI and LADSPA plug-ins"
7 arch=(i686)
8 url="http://www.anticore.org/jucetice/?page_id=4"
9 license=('LGPL')
10 depends=('dssi' 'freetype2' 'libxinerama' 'pth')
11 makedepends=('ladspa' 'steinberg-vst')
12 source=(http://www.anticore.org/jucetice/wp-content/uploads/${pkgname}_src-v$pkgver.tar.bz2
13         gcc44.patch
14         #jostbridge.patch
15         $pkgname.desktop)
17 build() {
18   cd "$srcdir/$pkgname-v$pkgver"
20   # fails with --as-needed
21   export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
23   # fix building with gcc 4.3
24   patch -Np1 -i ../gcc44.patch || return 1
26   # x86_64 hack
27   #[ -n "${depends[6]}" ] && {
28   #  patch -Np0 -i ../${pkgname}-${pkgver}-jostbridge-m64.patch
29   #  sed -i 's:#define JOST_USE_JACKBRIDGE         0:#define    JOST_USE_JACKBRIDGE         1:g' \
30   #    plugins/Jost/src/Config.h || return 1
31   #}
33   # we already have vst on our system
34   sed -i 's:source/common:vst:g' \
35     wrapper/formats/VST/juce_VstWrapper.cpp || return 1
37   # to use 2.4 read the file we edited
38   #sed -i 's:public.sdk/source/vst2.x:vst24:g' \
39   #  wrapper/formats/VST/juce_VstWrapper.cpp || return 1
41   # fix unexpected exit returns
42   sed -i -e 's:Release &:Release:g' -e 's:Debug &:Debug:g' \
43     -e 's:$mode &:$mode:g' shared/compile_jost || return 1
45   # build!
46   cd shared
48   ./configure
49   ./compile_libs Release || return 1
50   ./compile_jost Release || return 1
52   # install
53   install -Dm755 ../bin/jost "$pkgdir/usr/bin/$pkgname"
54   install -Dm755 ../bin/libjostvst.so "$pkgdir/usr/lib/vst/$pkgname.so"
56   install -Dm644 ../plugins/Jost/src/resources/jost.png \
57     "$pkgdir/usr/share/pixmaps/jost.png"
58   install -Dm644 "$srcdir/jost.desktop" \
59     "$pkgdir/usr/share/applications/jost.desktop"
61 md5sums=('2d8e6d86d4b683d29a83e7d5240c2a8e'
62          '75d8e51e1c5383d7864998b64598513c'
63          '9b669a96925c9a7b8d62ea6e88c06216')