diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..96dda62e7055 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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" +} |