summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96dda62e70552c05bcf333b5ad5a52a6e1dd102f (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
# Maintainer: Anton Kalmykov <anton dot kalmykov at gmail dot com>

_basename=airwave
pkgname=${_basename}-git
pkgver=r69.282add2
pkgrel=1
pkgdesc=("Airwave is a WINE-based VST bridge, that allows for the use of Windows 32- and 64-bit VST 2.4 audio plugins with Linux VST hosts")
arch=("i686" "x86_64")
license=("MIT")
url=("https://github.com/phantom-code/airwave")
depends=("wine>=1.7" "qt5-base")
makedepends=("git" "cmake>=2.8")

if [[ $CARCH == "x86_64" ]]; then
	makedepends+=("gcc-multilib")
fi

provides=("airwave")
conflicts=("airwave")

source=("git+https://github.com/phantom-code/airwave.git#branch=develop"
	"http://www.steinberg.net/sdk_downloads/vstsdk360_22_11_2013_build_100.zip")

md5sums=("SKIP" "1ac422ebb4aa2e86061278412c347b55")

pkgver()
{
	cd "${_basename}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build()
{
	cd "${_basename}"

	if [[ -d build ]]; then
		rm -rf build
	fi

	mkdir build && cd build

	cmake -DCMAKE_INSTALL_PREFIX="/usr"       \
		  -DCMAKE_BUILD_TYPE="Release"        \
		  -DVSTSDK_PATH="${srcdir}/VST3 SDK" ..
	make
}

package()
{
	cd "${_basename}/build"
	make install DESTDIR="${pkgdir}/"

	# Install the documentation
	install -D -m644 "${srcdir}/${_basename}/README" \
					 "${pkgdir}/usr/share/doc/${_basename}/README"

	# Install the license
	install -D -m644 "${srcdir}/${_basename}/LICENSE" \
					 "${pkgdir}/usr/share/licenses/${_basename}/LICENSE"
}