blob: c2555689244aae8fa88079e7201512467ae6f063 (
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
|
# Contributor: Tony Lambiris <tony@libpcap.net>
_basename=wineasio
pkgname="${_basename}-git"
pkgver=1.1.0.r0.g56c3e9d
pkgrel=1
pkgdesc='ASIO driver implementation for Wine'
url='https://github.com/wineasio/wineasio'
arch=('i686' 'x86_64' 'x86_64_v3')
license=('LGPL')
depends=('wine' 'jack')
depends_x86_64+=('lib32-jack')
makedepends_x86_64=('gcc-multilib')
provides=('wineasio')
conflicts=('wineasio')
source=(
'git+https://github.com/wineasio/wineasio.git'
'git+https://github.com/falkTX/rtaudio.git'
'setup_wineasio.sh'
)
sha256sums=(
'SKIP'
'SKIP'
'6ab4819215d9cb2fe5133380ab629538fa5de7ddb0bea82f1b4cef7904cb856d'
)
pkgver() {
cd "$srcdir/${_basename}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}
prepare() {
cd "${_basename}"
git submodule init
git config submodule.rtaudio.url "$srcdir/rtaudio"
git submodule update
}
build() {
cd "${_basename}"
if [[ "$CARCH" == 'x86_64' ]] || [[ "$CARCH" == 'x86_64_v3' ]]; then
make 64
pushd build64
winebuild -m64 --dll --fake-module -E ../wineasio.dll.spec asio.c.o main.c.o regsvr.c.o > wineasio.dll
popd
fi
make 32
cd build32
winebuild -m32 --dll --fake-module -E ../wineasio.dll.spec asio.c.o main.c.o regsvr.c.o > wineasio.dll
}
package() {
cd "${_basename}"
if [[ "$CARCH" == 'x86_64' ]] || [[ "$CARCH" == 'x86_64_v3' ]]; then
install -dm755 "$pkgdir"/usr/lib/wine/x86_64-{windows,unix}
install -m644 build64/wineasio.dll "$pkgdir"/usr/lib/wine/x86_64-windows/wineasio.dll
install -m644 build64/wineasio.dll.so "$pkgdir"/usr/lib/wine/x86_64-unix/wineasio.dll.so
fi
install -dm755 "$pkgdir"/usr/lib32/wine/i386-{windows,unix}
install -m644 build32/wineasio.dll "$pkgdir"/usr/lib32/wine/i386-windows/wineasio.dll
install -m644 build32/wineasio.dll.so "$pkgdir"/usr/lib32/wine/i386-unix/wineasio.dll.so
cd "$srcdir"
install -D -m755 setup_wineasio.sh "$pkgdir"/usr/bin/setup_wineasio
}
|