# Maintainer: Mathias Buhr pkgname=octasine pkgver=0.9.0 pkgrel=1 pkgdesc='VST2 frequency modulation synthesizer written in Rust' arch=('x86_64') url='https://github.com/greatest-ape/OctaSine' license=('GPL3') groups=('pro-audio' 'vst-plugins') depends=( 'fontconfig' 'freetype2' 'xcb-util-wm' 'libxcb' 'expat' 'libpng' 'harfbuzz' 'graphite' 'glib2' 'pcre' ) makedepends=( 'rust' ) source=(https://github.com/greatest-ape/OctaSine/archive/refs/tags/v${pkgver}.tar.gz) sha256sums=('14628f5fdbf34c8041ab57117fc5b88ea2f7b5a1ea7b85e2a4e3cb2b1e11fbb6') build() { cd OctaSine-${pkgver} cargo xtask bundle octasine --release --verbose --no-default-features --features "glow vst2" } package() { mkdir -p ${pkgdir}/usr/lib/vst cp ${srcdir}/OctaSine-${pkgver}/target/bundled/octasine.so ${pkgdir}/usr/lib/vst/OctaSine.so chmod +x ${pkgdir}/usr/lib/vst/OctaSine.so }