# Maintainer: Gustavo Alvarez _plug=decomb pkgname=avxsynth-plugin-decomb pkgver=5.2.3 pkgrel=4 pkgdesc="Plugin for Avxsynth: ${_plug}" arch=('x86_64') url='https://web.archive.org/web/20130724044827/http://mujintou.org.uk/avxsynth' license=('GPL') depends=('avxsynth-git') makedepends=( 'git' 'yasm' 'cmake' ) source=("https://web.archive.org/web/20150801145006if_/http://mujintou.org.uk/projects/decomb.zip") sha256sums=('3c8efb8ea8c831c67c9af8ce9ccc7a0c18416ac75b1374181ced0708a68c36ba') provides=("avxsynth-plugin-${_plug}") conflicts=("avxsynth-plugin-${_plug}") build() { CXXFLAGS+=' -Wno-format-security' cmake -S decomb -B build \ -DCMAKE_INSTALL_PREFIX=/usr/lib/avxsynth \ -DCMAKE_ASM_NASM_COMPILER=yasm cmake --build build } package(){ install -Dm775 build/libdecomb.so "${pkgdir}/usr/lib/avxsynth/libdecomb.so" install -Dm664 "${_plug}/doc/DecombFAQ.html" "${pkgdir}/usr/share/doc/avxsynth/plugins/${_plug}/DecombFAQ.html" install -Dm664 "${_plug}/doc/DecombReferenceManual.html" "${pkgdir}/usr/share/doc/avxsynth/plugins/${_plug}/DecombReferenceManual.html" install -Dm664 "${_plug}/doc/DecombTutorial.html" "${pkgdir}/usr/share/doc/avxsynth/plugins/${_plug}/DecombTutorial.html" }