blob: c9faaa5d8de27e81d949c3939c64c5b7c6d1ea0f (
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Contributor: Tony Lambiris <tony@libpcap.net>
_basename=wineasio
pkgname="${_basename}-git"
pkgver=1.2.0.r8.g6529641
pkgrel=1
pkgdesc='ASIO driver implementation for Wine'
url='https://github.com/wineasio/wineasio'
arch=('i686' 'x86_64' 'x86_64_v3')
license=('LGPL')
options=('!lto' '!debug')
depends=('wine' 'jack' 'realtime-privileges' 'python-pyqt5')
makedepends=('git')
depends_x86_64+=('lib32-jack')
makedepends_x86_64=('gcc-multilib')
provides=('wineasio')
conflicts=('wineasio')
install="${_basename}".install
source=(
'wineasio'::'git+https://github.com/wineasio/wineasio.git'
'rtaudio'::'git+https://github.com/falkTX/rtaudio.git'
)
sha256sums=(
'SKIP'
'SKIP'
)
pkgver() {
cd "$srcdir/${_basename}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}
prepare() {
cd "${_basename}"
_submodules=(
'rtaudio'
)
for submodule in ${_submodules[@]} ; do
git submodule init ${submodule}
git submodule set-url ${submodule} "${srcdir}/${submodule##*/}"
git -c protocol.file.allow=always submodule update ${submodule}
done
# Adjust PREFIX value in script files
sed -i "s?X-PREFIX-X?\/usr?" gui/wineasio-settings
}
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/wineasio64.dll "$pkgdir"/usr/lib/wine/x86_64-windows/
install -m644 build64/wineasio64.dll.so "$pkgdir"/usr/lib/wine/x86_64-unix/
fi
install -dm755 "$pkgdir"/usr/lib32/wine/i386-{windows,unix}
install -m644 build32/wineasio32.dll "$pkgdir"/usr/lib32/wine/i386-windows/
install -m644 build32/wineasio32.dll.so "$pkgdir"/usr/lib32/wine/i386-unix/
install -D -m644 gui/settings.py "$pkgdir"/usr/share/"$_basename"/settings.py
install -D -m644 gui/ui_settings.py "$pkgdir"/usr/share/"$_basename"/ui_settings.py
install -D -m644 README.md "$pkgdir"/usr/share/"$_basename"/README.md
install -D -m755 wineasio-register "$pkgdir"/usr/bin/wineasio-register
install -D -m755 gui/wineasio-settings "$pkgdir"/usr/bin/wineasio-settings
}
|