blob: e3b5270bf3f6f4a6051ff8c247901969c24c49ea (
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
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Joermungand <joermungand at gmail dot com>
pkgname=carla-bridges-win32-git
pkgver=6278.975821819
pkgrel=1
pkgdesc="Carla win32 bridge"
arch=('i686' 'x86_64')
url="http://kxstudio.sf.net/carla"
license=('GPL2')
conflicts=('carla-bridges-win32')
provides=('carla-bridges-win32')
depends=('mingw-w64-crt' 'mingw-w64-winpthreads' 'mingw-w64-pkg-config' 'wine' 'carla-git')
makedepends=('git' 'mingw-w64-gcc' 'gcc-multilib')
source=("$pkgname"::'git+https://github.com/falkTX/Carla.git')
md5sums=('SKIP')
_path=$PATH
_cflags=$CFLAGS
_cxxflags=$CXXFLAGS
_ldflags=$LDFLAGS
_ar=$AR
_cc=$CC
_cxx=$CXX
_pkg_config_path=$PKG_CONFIG_PATH
_win32=$WIN32
pkgver() {
cd "$srcdir/$pkgname"
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
export PATH=/usr/i686-w64-mingw32/bin:$PATH
export AR=i686-w64-mingw32-ar
export CC=i686-w64-mingw32-gcc
export CXX=i686-w64-mingw32-g++
export PKG_CONFIG_PATH=/usr/i686-w64-mingw32/lib/pkgconfig
export WIN32=true
unset CFLAGS
unset CXXFLAGS
unset LDFLAGS
export LDFLAGS="-static"
make win32 HAVE_LIBLO=false
export PATH=$_path
export AR=$_ar
export CC=gcc
export CXX=$_cxx
export PKG_CONFIG_PATH=$_pkg_config_path
export CFLAGS=$_cflags
export CXXFLAGS=$_cxxflags
export LDFLAGS=$_ldflags
export WIN32=$_win32
export JACKBRIDGE_FLAGS="-D__WIDL_objidl_generated_name_0000000C="
make wine32 TESTBUILD=false
}
package() {
cd "$srcdir/$pkgname"
mkdir -p "$pkgdir/usr/lib/carla"
cp bin/*.exe "$pkgdir/usr/lib/carla/"
cp bin/*.dll "$pkgdir/usr/lib/carla/"
mkdir -p "$pkgdir/usr/lib/lv2/carla.lv2"
mkdir -p "$pkgdir/usr/lib/vst/carla.vst"
cd "$pkgdir/usr/lib/carla"
ln -sr *.exe ../lv2/carla.lv2/
ln -sr *.exe ../vst/carla.vst/
ln -sr *.dll ../lv2/carla.lv2/
ln -sr *.dll ../vst/carla.vst/
}
|